Add back code diagnostic keymap

This commit is contained in:
mclilzee 2024-08-24 23:14:15 +02:00
parent ac78e7d9e7
commit 3ca902e490
1 changed files with 4 additions and 0 deletions

View File

@ -544,6 +544,10 @@ require('lazy').setup({
-- or a suggestion from your LSP for this to activate.
map('<leader>ca', vim.lsp.buf.code_action, '[C]ode [A]ction')
-- Open Code diagnostic in float window. your cursor needs to be on top of an error
-- Alternatively a hotkey were added in nvim 0.10 <C-W>d to do this functionaly by default
map('<leader>cd', vim.diagnostic.open_float, '[C]ode [D]iagnostic')
-- WARN: This is not Goto Definition, this is Goto Declaration.
-- For example, in C this would take you to the header.
map('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')