diff options
author | Evgeni Chasnovski <evgeni.chasnovski@gmail.com> | 2024-05-05 17:45:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-05 07:45:47 -0700 |
commit | 5e98439f6d8c3a4d2da9a295e522e96c9cdaf891 (patch) | |
tree | 27f1c32ae260c1fa570499750641069c608ace4c /runtime/lua/vim/_defaults.lua | |
parent | efb44e0cad294f51e330d57d7590d38de5cec62c (diff) | |
download | rneovim-5e98439f6d8c3a4d2da9a295e522e96c9cdaf891.tar.gz rneovim-5e98439f6d8c3a4d2da9a295e522e96c9cdaf891.tar.bz2 rneovim-5e98439f6d8c3a4d2da9a295e522e96c9cdaf891.zip |
fix(defaults): diagnostic mappings descriptions #28646
Diffstat (limited to 'runtime/lua/vim/_defaults.lua')
-rw-r--r-- | runtime/lua/vim/_defaults.lua | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/runtime/lua/vim/_defaults.lua b/runtime/lua/vim/_defaults.lua index 6d31a3ea93..bd1afd0beb 100644 --- a/runtime/lua/vim/_defaults.lua +++ b/runtime/lua/vim/_defaults.lua @@ -183,26 +183,22 @@ do do vim.keymap.set('n', ']d', function() vim.diagnostic.goto_next({ float = false }) - end, { - desc = 'Jump to the next diagnostic with the highest severity', - }) + end, { desc = 'Jump to the next diagnostic' }) vim.keymap.set('n', '[d', function() vim.diagnostic.goto_prev({ float = false }) - end, { - desc = 'Jump to the previous diagnostic with the highest severity', - }) + end, { desc = 'Jump to the previous diagnostic' }) vim.keymap.set('n', '<C-W>d', function() vim.diagnostic.open_float() - end, { - desc = 'Open a floating window showing diagnostics under the cursor', - }) - - vim.keymap.set('n', '<C-W><C-D>', '<C-W>d', { - remap = true, - desc = 'Open a floating window showing diagnostics under the cursor', - }) + end, { desc = 'Show diagnostics under the cursor' }) + + vim.keymap.set( + 'n', + '<C-W><C-D>', + '<C-W>d', + { remap = true, desc = 'Show diagnostics under the cursor' } + ) end end |