nvim: keymappings: Add a useful mapping for closing tabs

This commit is contained in:
Sanchayan Maity 2021-04-22 10:54:49 +05:30
parent a509c22865
commit baa70ee678

View file

@ -31,6 +31,9 @@ remap('n', '<Leader>tf', ':tabfirst<CR>', { noremap = true })
remap('n', '<Leader>tl', ':tablast<CR>', { noremap = true })
remap('n', '<Leader>tN', ':tabnew<CR>', { noremap = true })
remap('n', '<Leader>tc', ':tabclose<CR>', { noremap = true })
-- Jump to first tab & close all other tabs. Helpful after running Git
-- difftool.
remap('n', '<Leader>T', ':tabfirst<CR>:tabonly<CR>', { noremap = true })
-- For tags
remap('n', '[t', ':tprevious<CR>', { noremap = true })
remap('n', ']t', ':tNext<CR>', { noremap = true })