mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-21 20:11:06 +00:00
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:
-
e688b486fe/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.
This commit is contained in:
parent
d14b7733e7
commit
b36b8589b6
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ return {
|
||||||
-- Ensure mason installs the server
|
-- Ensure mason installs the server
|
||||||
clangd = {
|
clangd = {
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>ch", "<cmd>ClangdSwitchSourceHeader<cr>", desc = "Switch Source/Header (C/C++)" },
|
{ "<leader>ch", "<cmd>LspClangdSwitchSourceHeader<cr>", desc = "Switch Source/Header (C/C++)" },
|
||||||
},
|
},
|
||||||
root_markers = {
|
root_markers = {
|
||||||
"compile_commands.json",
|
"compile_commands.json",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue