nvim: keymappings: [D and ]D are now mapped by default
These are now mapped for jumping to first and last diagnostic in the buffer.
This commit is contained in:
parent
2ffd6a3803
commit
19281ca606
1 changed files with 1 additions and 3 deletions
|
@ -156,9 +156,7 @@ remap('n', '<Leader>mc', ':norm `.<CR>' , opts)
|
|||
remap('n', '<Leader>mi', ':norm `^<CR>' , opts)
|
||||
remap('n', '<Leader>mj', ':norm `\'<CR>', opts)
|
||||
|
||||
-- [d and ]d are mapped by default
|
||||
remap('n', '[D', '<cmd>lua vim.diagnostic.goto_prev()<CR>' , opts)
|
||||
remap('n', ']D', '<cmd>lua vim.diagnostic.goto_next()<CR>' , opts)
|
||||
-- [d, ]d, [D, ]D are mapped by default
|
||||
remap('n', 'dl', '<cmd>lua vim.diagnostic.setloclist()<CR>' , opts)
|
||||
remap('n', 'dq', '<cmd>lua vim.diagnostic.setqflist()<CR>' , opts)
|
||||
remap('n', 'dr', '<cmd>lua vim.diagnostic.reset()<CR>' , opts)
|
||||
|
|
Loading…
Reference in a new issue