From b36b8589b62f55b181367afe954606c73233c0a1 Mon Sep 17 00:00:00 2001 From: Roland Kaminski Date: Sun, 19 Oct 2025 12:27:42 +0200 Subject: [PATCH] fix(extras): adjust switch source/header shortcut (#6567) The command to switch header and source is now called `:LspClangdSwitchSourceHeader` and no longer `:ClangdSwitchSourceHeader`. ## Description This is just a small fix due to a command that has been renamed. I did not find the documentation but the relevant line in the code where the command is defined is here: - https://github.com/neovim/nvim-lspconfig/blob/e688b486fe9291f151eae7e5c0b5a5c4ef980847/lsp/clangd.lua#L92 ## Related Issue(s) I did not find any related issues. ## Checklist - [x] I've read the [CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md) guidelines. --- lua/lazyvim/plugins/extras/lang/clangd.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazyvim/plugins/extras/lang/clangd.lua b/lua/lazyvim/plugins/extras/lang/clangd.lua index 0ba58aca..cac83194 100644 --- a/lua/lazyvim/plugins/extras/lang/clangd.lua +++ b/lua/lazyvim/plugins/extras/lang/clangd.lua @@ -60,7 +60,7 @@ return { -- Ensure mason installs the server clangd = { keys = { - { "ch", "ClangdSwitchSourceHeader", desc = "Switch Source/Header (C/C++)" }, + { "ch", "LspClangdSwitchSourceHeader", desc = "Switch Source/Header (C/C++)" }, }, root_markers = { "compile_commands.json",