From 19281ca6064a2361a509d4ae4190789e1590a941 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Mon, 3 Jun 2024 12:04:22 +0530 Subject: [PATCH] nvim: keymappings: [D and ]D are now mapped by default These are now mapped for jumping to first and last diagnostic in the buffer. --- nvim/.config/nvim/lua/keymappings.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nvim/.config/nvim/lua/keymappings.lua b/nvim/.config/nvim/lua/keymappings.lua index 8cd68ab..6e3bde4 100644 --- a/nvim/.config/nvim/lua/keymappings.lua +++ b/nvim/.config/nvim/lua/keymappings.lua @@ -156,9 +156,7 @@ remap('n', 'mc', ':norm `.' , opts) remap('n', 'mi', ':norm `^' , opts) remap('n', 'mj', ':norm `\'', opts) --- [d and ]d are mapped by default -remap('n', '[D', 'lua vim.diagnostic.goto_prev()' , opts) -remap('n', ']D', 'lua vim.diagnostic.goto_next()' , opts) +-- [d, ]d, [D, ]D are mapped by default remap('n', 'dl', 'lua vim.diagnostic.setloclist()' , opts) remap('n', 'dq', 'lua vim.diagnostic.setqflist()' , opts) remap('n', 'dr', 'lua vim.diagnostic.reset()' , opts)