[nvim] update window size

This commit is contained in:
Christophe Robillard 2025-05-03 12:46:54 +02:00
parent 240f85e182
commit dbd91016a9
2 changed files with 11 additions and 1 deletions

View file

@ -25,7 +25,7 @@ require 'keymaps'
require 'lazy-bootstrap' require 'lazy-bootstrap'
-- [[ Configure and install plugins ]] -- [[ Configure and install plugins ]]
-- require 'lazy-plugins' require 'lazy-plugins'
-- The line beneath this is called `modeline`. See `:help modeline` -- The line beneath this is called `modeline`. See `:help modeline`
-- vim: ts=2 sts=2 sw=2 et -- vim: ts=2 sts=2 sw=2 et

View file

@ -33,6 +33,16 @@ vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right win
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' }) vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' }) vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
vim.keymap.set('n', '<S-down>', '<C-w>-', { desc = 'Decrease current window height' })
vim.keymap.set('n', '<S-up>', '<C-w>+', { desc = 'Increase current window height' })
vim.keymap.set('n', '<S-left>', '<C-w><', { desc = 'Decrease current window width' })
vim.keymap.set('n', '<S-right>', '<C-w>>', { desc = 'Increase current window width' })
vim.keymap.set('n', '<C-left>', '<cmd>vertical resize -5<cr>', { desc = 'Decrease current window height' })
vim.keymap.set('n', '<C-right>', '<cmd>vertical resize +5<cr>', { desc = 'Decrease current window height' })
vim.keymap.set('n', '<C-up>', '<cmd>horizontal resize -5<cr>', { desc = 'Decrease current window height' })
vim.keymap.set('n', '<C-down>', '<cmd>horizontal resize +5<cr>', { desc = 'Decrease current window height' })
-- [[ Basic Autocommands ]] -- [[ Basic Autocommands ]]
-- See `:help lua-guide-autocommands` -- See `:help lua-guide-autocommands`