resize.nvim provides an intuitive way to resize windows using arrow keys. With Vim's native window resize shortcuts being less intuitive, this plugin allows you to easily adjust the size of windows using Ctrl + arrow key movements.
use {'0xm4n/resize.nvim'}
Add this to your config:
vim.keymap.set("n", "<C-Left>", "<cmd>lua require('resize').ResizeLeft()<CR>", {silent=true})
vim.keymap.set("n", "<C-Right>", "<cmd>lua require('resize').ResizeRight()<CR>", {silent=true})
vim.keymap.set("n", "<C-Up>", "<cmd>lua require('resize').ResizeUp()<CR>", {silent=true})
vim.keymap.set("n", "<C-Down>", "<cmd>lua require('resize').ResizeDown()<CR>", {silent=true})
Using these mappings:
In normal mode, <C-Left> will resize the current window to the left. <C-Right> will resize the current window to the right...