nvim: keymappings: Remove diagnostic mappings which are now default

This commit is contained in:
Sanchayan Maity 2024-04-27 10:50:57 +05:30
parent 01749031fb
commit dc40ccac1e
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -156,8 +156,7 @@ remap('n', '<Leader>mc', ':norm `.<CR>' , opts)
remap('n', '<Leader>mi', ':norm `^<CR>' , opts) remap('n', '<Leader>mi', ':norm `^<CR>' , opts)
remap('n', '<Leader>mj', ':norm `\'<CR>', opts) remap('n', '<Leader>mj', ':norm `\'<CR>', opts)
remap('n', '[d', '<cmd>lua vim.diagnostic.goto_prev { wrap = false }<CR>' , opts) -- [d and ]d are mapped by default
remap('n', ']d', '<cmd>lua vim.diagnostic.goto_next { wrap = false }<CR>' , opts)
remap('n', '[D', '<cmd>lua vim.diagnostic.goto_prev()<CR>' , opts) 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)