nvim: keymappings: Add mappings to hide, reset & show diagnostic
This commit is contained in:
parent
46534e547c
commit
00f67243f7
1 changed files with 3 additions and 0 deletions
|
@ -127,6 +127,9 @@ remap('n', '[D', '<cmd>lua vim.diagnostic.goto_prev()<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', 'dq', '<cmd>lua vim.diagnostic.setqflist()<CR>' , opts)
|
||||
remap('n', 'dr', '<cmd>lua vim.diagnostic.reset()<CR>' , opts)
|
||||
remap('n', 'dH', '<cmd>lua vim.diagnostic.hide()<CR>' , opts)
|
||||
remap('n', 'dh', '<cmd>lua vim.diagnostic.show()<CR>' , opts)
|
||||
remap('n', ',d', '<cmd>lua vim.diagnostic.open_float(0, {scope="line"})<CR>' , opts)
|
||||
remap('n', ',D', '<cmd>lua vim.diagnostic.open_float(0, {scope="cursor"})<CR>', opts)
|
||||
|
||||
|
|
Loading…
Reference in a new issue