nvim: keymappings: Update to use the new diagnostic API
While at it, switch the key mapping to use the more convenient one for line diagnostic.
This commit is contained in:
parent
f6d56d6786
commit
0ee98bc81c
1 changed files with 2 additions and 2 deletions
|
@ -144,5 +144,5 @@ remap('n', '[D', '<cmd>lua vim.diagnostic.goto_prev()<CR>' , opts
|
||||||
remap('n', ']D', '<cmd>lua vim.diagnostic.goto_next()<CR>' , opts)
|
remap('n', ']D', '<cmd>lua vim.diagnostic.goto_next()<CR>' , opts)
|
||||||
remap('n', 'dl', '<cmd>lua vim.diagnostic.setloclist()<CR>' , opts)
|
remap('n', 'dl', '<cmd>lua vim.diagnostic.setloclist()<CR>' , opts)
|
||||||
remap('n', 'dq', '<cmd>lua vim.diagnostic.setqflist()<CR>' , opts)
|
remap('n', 'dq', '<cmd>lua vim.diagnostic.setqflist()<CR>' , opts)
|
||||||
remap('n', ',D', '<cmd>lua vim.diagnostic.show_line_diagnostics()<CR>' , opts)
|
remap('n', ',d', '<cmd>lua vim.diagnostic.open_float(0, {scope="line"})<CR>' , opts)
|
||||||
remap('n', ',d', '<cmd>lua vim.diagnostic.show_position_diagnostics()<CR>', opts)
|
remap('n', ',D', '<cmd>lua vim.diagnostic.open_float(0, {scope="cursor"})<CR>', opts)
|
||||||
|
|
Loading…
Reference in a new issue