From 07152e0e91c13dc388129d1eac7569b6cb68c5b5 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Wed, 2 Oct 2024 10:26:08 +0530 Subject: [PATCH] nvim: keymappings: Drop unimpaired style mappings Unimpaired style mappings are now default. https://github.com/neovim/neovim/pull/28525 --- nvim/.config/nvim/lua/keymappings.lua | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/nvim/.config/nvim/lua/keymappings.lua b/nvim/.config/nvim/lua/keymappings.lua index 5ecb57c..260ef68 100644 --- a/nvim/.config/nvim/lua/keymappings.lua +++ b/nvim/.config/nvim/lua/keymappings.lua @@ -28,11 +28,6 @@ remap('n', 's', ':silent lgrep!', opts) remap('n', 'x', ':x' , opts) remap('n', 'q', ':q' , opts) remap('n', 'Q', ':qa', opts) --- Navigate buffers -remap('n', '[b', ':bprevious', opts) -remap('n', ']b', ':bnext' , opts) -remap('n', '[B', ':bfirst' , opts) -remap('n', ']B', ':blast' , opts) -- Reload buffer remap('n', 'e', ':e' , opts) remap('n', 'E', ':bufdo', opts) @@ -47,25 +42,13 @@ remap('n', 'tc', ':tabclose' , opts) -- difftool. remap('n', 'T', ':tabfirst:tabonly', opts) -- For tags -remap('n', '[t', ':tprevious', opts) -remap('n', ']t', ':tNext' , opts) -remap('n', '[T', ':tfirst' , opts) -remap('n', ']T', ':tlast' , opts) remap('n', 'ts', ':tselect ', opts) -- Quickfix list mappings remap('n', 'qo', ':copen' , opts) remap('n', 'qc', ':cclose' , opts) -remap('n', '[q', ':cprevious', opts) -remap('n', ']q', ':cnext' , opts) -remap('n', '[Q', ':cfirst' , opts) -remap('n', ']Q', ':clast' , opts) -- Location list mappings remap('n', 'Lo', ':lopen' , opts) remap('n', 'Lc', ':lclose' , opts) -remap('n', '[l', ':lprevious', opts) -remap('n', ']l', ':lnext' , opts) -remap('n', '[L', ':lfirst' , opts) -remap('n', ']L', ':lfirst' , opts) -- Preview tags remap('n', 'pt', ':ptag ' , opts) remap('n', '[p', ':ptprevious' , opts)