Skip to content

Intuitively resize neovim windows using arrow keys.

License

Notifications You must be signed in to change notification settings

0xm4n/resize.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Intuitively resize neovim windows using arrow keys.

Resources

License

Stars

Watchers

Forks

Languages