Use [d & ]d for moving around diagnostics in normal mode

This commit is contained in:
Kenneth Benzie 2024-03-20 22:18:10 +00:00
parent a283ab973a
commit c0ab67d3a4

View File

@ -106,8 +106,8 @@ return {
-- Diagnostic mappings -- Diagnostic mappings
-- TODO: trouble.nvim mappings instead? https://youtu.be/MuUrCcvE-Yw?t=631 -- TODO: trouble.nvim mappings instead? https://youtu.be/MuUrCcvE-Yw?t=631
vim.keymap.set('n', '<C-n>', vim.diagnostic.goto_next, { remap = false }) vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { remap = false })
vim.keymap.set('n', '<C-p>', vim.diagnostic.goto_prev, { remap = false }) vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { remap = false })
vim.keymap.set('n', '<leader>sd', vim.diagnostic.open_float, { remap = false }) vim.keymap.set('n', '<leader>sd', vim.diagnostic.open_float, { remap = false })
-- LSP mappings created when attached to a buffer -- LSP mappings created when attached to a buffer