mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
fix(defaults): diagnostic mappings descriptions #28646
This commit is contained in:
parent
efb44e0cad
commit
5e98439f6d
@ -183,26 +183,22 @@ do
|
|||||||
do
|
do
|
||||||
vim.keymap.set('n', ']d', function()
|
vim.keymap.set('n', ']d', function()
|
||||||
vim.diagnostic.goto_next({ float = false })
|
vim.diagnostic.goto_next({ float = false })
|
||||||
end, {
|
end, { desc = 'Jump to the next diagnostic' })
|
||||||
desc = 'Jump to the next diagnostic with the highest severity',
|
|
||||||
})
|
|
||||||
|
|
||||||
vim.keymap.set('n', '[d', function()
|
vim.keymap.set('n', '[d', function()
|
||||||
vim.diagnostic.goto_prev({ float = false })
|
vim.diagnostic.goto_prev({ float = false })
|
||||||
end, {
|
end, { desc = 'Jump to the previous diagnostic' })
|
||||||
desc = 'Jump to the previous diagnostic with the highest severity',
|
|
||||||
})
|
|
||||||
|
|
||||||
vim.keymap.set('n', '<C-W>d', function()
|
vim.keymap.set('n', '<C-W>d', function()
|
||||||
vim.diagnostic.open_float()
|
vim.diagnostic.open_float()
|
||||||
end, {
|
end, { desc = 'Show diagnostics under the cursor' })
|
||||||
desc = 'Open a floating window showing diagnostics under the cursor',
|
|
||||||
})
|
|
||||||
|
|
||||||
vim.keymap.set('n', '<C-W><C-D>', '<C-W>d', {
|
vim.keymap.set(
|
||||||
remap = true,
|
'n',
|
||||||
desc = 'Open a floating window showing diagnostics under the cursor',
|
'<C-W><C-D>',
|
||||||
})
|
'<C-W>d',
|
||||||
|
{ remap = true, desc = 'Show diagnostics under the cursor' }
|
||||||
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user