Reworked resize window binds

This commit is contained in:
Imbus 2024-08-07 18:03:09 +02:00
parent 8d7b580f15
commit ebf1276112

View file

@ -31,10 +31,10 @@ vim.keymap.set('n', '<up>', '<cmd>echo "Use k to move!!"<CR>')
vim.keymap.set('n', '<down>', '<cmd>echo "Use j to move!!"<CR>') vim.keymap.set('n', '<down>', '<cmd>echo "Use j to move!!"<CR>')
-- Resize windows -- Resize windows
vim.keymap.set('n', '<C-S-l>', '<cmd>wincmd 15 ><CR>', { desc = 'Increase window width' }) vim.keymap.set('n', '<C-Up>', '<cmd>resize +2<cr>', { desc = 'Increase Window Height' })
vim.keymap.set('n', '<C-S-h>', '<cmd>wincmd 15 <<CR>', { desc = 'Decrease window width' }) vim.keymap.set('n', '<C-Down>', '<cmd>resize -2<cr>', { desc = 'Decrease Window Height' })
vim.keymap.set('n', '<C-S-k>', '<cmd>wincmd 5 +<CR>', { desc = 'Increase window height' }) vim.keymap.set('n', '<C-Left>', '<cmd>vertical resize -2<cr>', { desc = 'Decrease Window Width' })
vim.keymap.set('n', '<C-S-j>', '<cmd>wincmd 5 -<CR>', { desc = 'Decrease window height' }) vim.keymap.set('n', '<C-Right>', '<cmd>vertical resize +2<cr>', { desc = 'Increase Window Width' })
vim.keymap.set('n', '<C-S-0>', '<cmd>wincmd =<CR>', { desc = 'Set height/width equal' }) vim.keymap.set('n', '<C-S-0>', '<cmd>wincmd =<CR>', { desc = 'Set height/width equal' })
-- Keybinds to make split navigation easier. -- Keybinds to make split navigation easier.