From 88dff6268a068403c87b461aee69beb61ceb8303 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Kubern=C3=A1t?= Date: Thu, 2 Jan 2025 12:59:59 +0100 Subject: [PATCH] fix(clangd): fix switchSourceHeader detection (#3538) The previous patch to this file (88c4c042e1e59f992e4c7aff3531033047b3aa9c) changed the string to 'ccls' (possibly by copy-paste error). --- lua/lspconfig/configs/clangd.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lspconfig/configs/clangd.lua b/lua/lspconfig/configs/clangd.lua index f85337fa67..ebacbcb950 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