Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 955 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 955 Bytes

resize.nvim

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.

Installation

packer.nvim :

use {'0xm4n/resize.nvim'}

Usage

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...