Update lsp-general.lua

This commit is contained in:
Benjamin Kyd
2024-06-21 14:53:17 +01:00
committed by GitHub
parent 04e3c5e6a1
commit a863194579

View File

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