Update lsp-general.lua

This commit is contained in:
Benjamin Kyd
2024-06-21 14:57:07 +01:00
committed by GitHub
parent 7ce9e788c5
commit 907cb93a1d

View File

@@ -180,7 +180,7 @@ lsp.on_attach(function(_, bufnr)
-- CLANGFORMATTTTT
vim.keymap.set('n', 'gf', '<Cmd>lua vim.lsp.buf.format()<CR>', opts)
vim.keymap.set('n', 'gd', '<Cmd>ClangdSwitchSourceHeader<CR>', opts)
vim.keymap.set('n', '<Leader>gg', '<Cmd>ClangdSwitchSourceHeader<CR>', opts)
vim.keymap.set('n', 'gw', '<Cmd>StripWhitespace<CR>', opts)
end)