Finer height resize control

This commit is contained in:
Imbus 2024-08-02 05:17:39 +02:00
parent 9e3c1f9bbb
commit c219350d23

View file

@ -28,8 +28,8 @@ 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-S-l>', '<cmd>wincmd 15 ><CR>', { desc = 'Increase window width' })
vim.keymap.set('n', '<C-S-h>', '<cmd>wincmd 15 <<CR>', { desc = 'Decrease window width' }) vim.keymap.set('n', '<C-S-h>', '<cmd>wincmd 15 <<CR>', { desc = 'Decrease window width' })
vim.keymap.set('n', '<C-S-k>', '<cmd>wincmd 15 +<CR>', { desc = 'Increase window height' }) vim.keymap.set('n', '<C-S-k>', '<cmd>wincmd 8 +<CR>', { desc = 'Increase window height' })
vim.keymap.set('n', '<C-S-j>', '<cmd>wincmd 15 -<CR>', { desc = 'Decrease window height' }) vim.keymap.set('n', '<C-S-j>', '<cmd>wincmd 8 -<CR>', { desc = 'Decrease window height' })
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.