aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorVáclav Kubernát <sir.venceslas@gmail.com>2025-01-02 12:59:59 +0100
committerGitHub <noreply@github.com>2025-01-02 19:59:59 +0800
commit88dff6268a068403c87b461aee69beb61ceb8303 (patch)
treefb101c6103ae1ec984ebee08f47aef6a8a0b7bf2 /lua
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-88dff6268a068403c87b461aee69beb61ceb8303.tar
nvim-lspconfig-88dff6268a068403c87b461aee69beb61ceb8303.tar.gz
nvim-lspconfig-88dff6268a068403c87b461aee69beb61ceb8303.tar.bz2
nvim-lspconfig-88dff6268a068403c87b461aee69beb61ceb8303.tar.lz
nvim-lspconfig-88dff6268a068403c87b461aee69beb61ceb8303.tar.xz
nvim-lspconfig-88dff6268a068403c87b461aee69beb61ceb8303.tar.zst
nvim-lspconfig-88dff6268a068403c87b461aee69beb61ceb8303.zip
fix(clangd): fix switchSourceHeader detection (#3538)
The previous patch to this file (88c4c042e1e59f992e4c7aff3531033047b3aa9c) changed the string to 'ccls' (possibly by copy-paste error).
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/configs/clangd.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/configs/clangd.lua b/lua/lspconfig/configs/clangd.lua
index f85337fa..ebacbcb9 100644
--- a/lua/lspconfig/configs/clangd.lua
+++ b/lua/lspconfig/configs/clangd.lua
@@ -4,7 +4,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 = util.get_active_client_by_name(bufnr, 'clangd')
if not client then
return vim.notify(('method %s is not supported by any servers active on the current buffer'):format(method_name))
end