Update lsp-general.lua
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user