Skip to content

Commit

Permalink
fix(clangd): fix switchSourceHeader detection (#3538)
Browse files Browse the repository at this point in the history
The previous patch to this file (88c4c04)
changed the string to 'ccls' (possibly by copy-paste error).
  • Loading branch information
syyyr authored Jan 2, 2025
1 parent ace9661 commit 88dff62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lspconfig/configs/clangd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 88dff62

Please sign in to comment.