Changing the shortcuts for cycling between diagnostics.

This commit is contained in:
Finch 2024-01-30 11:42:50 -06:00
parent cbbb18df63
commit 8670032827

View File

@ -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)