Changing the shortcuts for cycling between diagnostics.
This commit is contained in:
parent
cbbb18df63
commit
8670032827
4
init.lua
4
init.lua
@ -303,8 +303,8 @@ local on_attach = function(client, bufnr)
|
|||||||
|
|
||||||
-- Keyboard Mappings
|
-- Keyboard Mappings
|
||||||
local bufopts = { noremap = true, silent = true, buffer = bufnr }
|
local bufopts = { noremap = true, silent = true, buffer = bufnr }
|
||||||
keymap('n', '<c-k>', vim.diagnostic.goto_prev, bufopts)
|
keymap('n', '<c-[>', vim.diagnostic.goto_prev, bufopts)
|
||||||
keymap('n', '<c-j>', vim.diagnostic.goto_next, bufopts)
|
keymap('n', '<c-]>', vim.diagnostic.goto_next, bufopts)
|
||||||
-- keymap('n', 'gl', vim.diagnostic.open_float, bufopts)
|
-- keymap('n', 'gl', vim.diagnostic.open_float, bufopts)
|
||||||
keymap('n', 'ga', vim.lsp.buf.code_action, bufopts)
|
keymap('n', 'ga', vim.lsp.buf.code_action, bufopts)
|
||||||
keymap('n', 'gD', vim.lsp.buf.declaration, bufopts)
|
keymap('n', 'gD', vim.lsp.buf.declaration, bufopts)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user