nvim: keymappings: Drop unimpaired style mappings

Unimpaired style mappings are now default.
https://github.com/neovim/neovim/pull/28525
This commit is contained in:
Sanchayan Maity 2024-10-02 10:26:08 +05:30
parent 1d853fbe00
commit 07152e0e91
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -28,11 +28,6 @@ remap('n', '<LocalLeader>s', ':silent lgrep!<SPACE>', opts)
remap('n', '<Leader>x', '<Esc>:x<CR>' , opts)
remap('n', '<Leader>q', '<Esc>:q<CR>' , opts)
remap('n', '<Leader>Q', '<Esc>:qa<CR>', opts)
-- Navigate buffers
remap('n', '[b', ':bprevious<CR>', opts)
remap('n', ']b', ':bnext<CR>' , opts)
remap('n', '[B', ':bfirst<CR>' , opts)
remap('n', ']B', ':blast<CR>' , opts)
-- Reload buffer
remap('n', '<Leader>e', ':e<CR>' , opts)
remap('n', '<Leader>E', ':bufdo<CR>', opts)
@ -47,25 +42,13 @@ remap('n', '<Leader>tc', ':tabclose<CR>' , opts)
-- difftool.
remap('n', '<Leader>T', ':tabfirst<CR>:tabonly<CR>', opts)
-- For tags
remap('n', '[t', ':tprevious<CR>', opts)
remap('n', ']t', ':tNext<CR>' , opts)
remap('n', '[T', ':tfirst<CR>' , opts)
remap('n', ']T', ':tlast<CR>' , opts)
remap('n', '<Leader>ts', ':<C-u>tselect <C-r><C-w><CR>', opts)
-- Quickfix list mappings
remap('n', 'qo', ':copen<CR>' , opts)
remap('n', 'qc', ':cclose<CR>' , opts)
remap('n', '[q', ':cprevious<CR>', opts)
remap('n', ']q', ':cnext<CR>' , opts)
remap('n', '[Q', ':cfirst<CR>' , opts)
remap('n', ']Q', ':clast<CR>' , opts)
-- Location list mappings
remap('n', 'Lo', ':lopen<CR>' , opts)
remap('n', 'Lc', ':lclose<CR>' , opts)
remap('n', '[l', ':lprevious<CR>', opts)
remap('n', ']l', ':lnext<CR>' , opts)
remap('n', '[L', ':lfirst<CR>' , opts)
remap('n', ']L', ':lfirst<CR>' , opts)
-- Preview tags
remap('n', 'pt', ':ptag <C-R><C-W><CR>' , opts)
remap('n', '[p', ':ptprevious<CR>' , opts)