nvim: keymappings: Add mapping to resize splits

This commit is contained in:
Sanchayan Maity 2022-04-12 20:06:51 +05:30
parent f7ab6b1532
commit 93110c3445
1 changed files with 4 additions and 0 deletions

View File

@ -151,3 +151,7 @@ remap('n', '<C-Left>' , ':TmuxNavigateLeft<CR>' , silent_opts)
remap('n', '<C-Right>', ':TmuxNavigateRight<CR>', silent_opts)
remap('n', '<C-Up>' , ':TmuxNavigateUp<CR>' , silent_opts)
remap('n', '<C-Down>' , ':TmuxNavigateDown<CR>' , silent_opts)
-- Resize splits
remap('n', '<Leader>+', ':exe "resize " . (winheight(0) * 3/2)<CR>', silent_opts)
remap('n', '<Leader>-', ':exe "resize " . (winheight(0) * 2/3)<CR>', silent_opts)