aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/configs/ccls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lspconfig/configs/ccls.lua')
-rw-r--r--lua/lspconfig/configs/ccls.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/configs/ccls.lua b/lua/lspconfig/configs/ccls.lua
index e64df3c6..ac56dffb 100644
--- a/lua/lspconfig/configs/ccls.lua
+++ b/lua/lspconfig/configs/ccls.lua
@@ -3,7 +3,7 @@ local util = require 'lspconfig.util'
local function switch_source_header(bufnr)
local method_name = 'textDocument/switchSourceHeader'
bufnr = util.validate_bufnr(bufnr)
- local client = util.get_active_client_by_name(bufnr, 'ccls')
+ local client = vim.lsp.get_clients({ bufnr = bufnr, name = 'ccls' })[1]
if not client then
return vim.notify(('method %s is not supported by any servers active on the current buffer'):format(method_name))
end