From 9e3c1f9bbbc48f6a5abe7d57dd367271e7b2c884 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Thu, 1 Aug 2024 00:39:27 +0200 Subject: [PATCH] Resize windows keymaps --- lua/keymaps.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/keymaps.lua b/lua/keymaps.lua index 069b6b6..05d7728 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -25,6 +25,13 @@ vim.keymap.set('n', '', 'echo "Use l to move!!"') vim.keymap.set('n', '', 'echo "Use k to move!!"') vim.keymap.set('n', '', 'echo "Use j to move!!"') +-- Resize windows +vim.keymap.set('n', '', 'wincmd 15 >', { desc = 'Increase window width' }) +vim.keymap.set('n', '', 'wincmd 15 <', { desc = 'Decrease window width' }) +vim.keymap.set('n', '', 'wincmd 15 +', { desc = 'Increase window height' }) +vim.keymap.set('n', '', 'wincmd 15 -', { desc = 'Decrease window height' }) +vim.keymap.set('n', '', 'wincmd =', { desc = 'Set height/width equal' }) + -- Keybinds to make split navigation easier. -- Use CTRL+ to switch between windows --