summaryrefslogtreecommitdiff
path: root/.config/nvim/lsp/clangd.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lsp/clangd.lua')
-rw-r--r--.config/nvim/lsp/clangd.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/.config/nvim/lsp/clangd.lua b/.config/nvim/lsp/clangd.lua
index 01ae2e1..dc5519d 100644
--- a/.config/nvim/lsp/clangd.lua
+++ b/.config/nvim/lsp/clangd.lua
@@ -58,7 +58,6 @@ local function symbol_info()
end
return {
- mason = false,
cmd = {
'clangd',
'--background-index',
@@ -100,7 +99,7 @@ return {
symbol_info()
end, { desc = 'Show symbol info' })
- vim.keymap.set('n', 'H', '<cmd>ClangdSwitchSourceHeader<cr>', { desc = '[H]eader and Source Switcher' })
+ vim.keymap.set('n', '<leader>H', '<cmd>ClangdSwitchSourceHeader<cr>', { desc = '[H]eader and Source Switcher' })
vim.keymap.set('n', 'K', '<cmd>lua require("pretty_hover").hover()<cr>', { desc = 'Documentation Hover' })
-- TODO: do I need pretty_hover? maybe that's what causes issues?
end,