vim: use <Up>/<Down> to navigate diagnostics

This commit is contained in:
Fernando Schauenburg 2023-09-05 11:12:48 +02:00
parent 43b5d5c8a5
commit 13561a7e36

View file

@ -81,8 +81,8 @@ local keymap = {
{ '<leader>bg', [[<cmd>let &background = &background ==? 'light' ? 'dark' : 'light'<cr>]] }, { '<leader>bg', [[<cmd>let &background = &background ==? 'light' ? 'dark' : 'light'<cr>]] },
-- navigate diagnostics -- navigate diagnostics
{ '<leader>dj', diagnostic.goto_next }, { '<Down>', diagnostic.goto_next },
{ '<leader>dk', diagnostic.goto_prev }, { '<Up>', diagnostic.goto_prev },
{ '<leader>dd', diagnostic.toggle }, { '<leader>dd', diagnostic.toggle },
{ '<leader>do', diagnostic.open_float }, { '<leader>do', diagnostic.open_float },
{ '<leader>dh', diagnostic.hide }, { '<leader>dh', diagnostic.hide },