mirror of
https://github.com/adlrwbr/keep-split-ratio.nvim.git
synced 2026-09-29 16:38:45 +00:00
Zero-config neovim plugin to resize splits proportionally.
- Lua 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| lua/keep-split-ratio | ||
| .gitignore | ||
| demo.gif | ||
| LICENSE | ||
| README.md | ||
🪟 keep-split-ratio.nvim
Preserve split percentages on UI resize. If you have 70/30 or 50/50 vertical splits, resizing your terminal/editor resizes the splits proportionally.
- Lightweight. Does nothing until
VimResizedfires. - Per-tab state.
- Respects
winfixwidthcolumns (they keep their width).
Install
Lazy.nvim
{ "adlrwbr/keep-split-ratio.nvim", opts = {} }
Demo
As we resize the window,
| Default | with keep-split-ratio.nvim |
|---|---|
| only the right side grows and shrinks | both splits grow and shrink |
See also
-
winfixwidth/winfixheight
Mark a split as fixed (:set winfixwidth) so it resists being resized.
Useful for sidebars but the opposite of keeping ratios. -
Manual equalize
The keybind<C-w>=equalizes all splits on demand. -
equalalways
:set equalalwaysorvim.opt.equalalways = true
Automatically equalizes splits whenever the window is resized or a new split is opened. -
focus.nvim
Full-fledged window manager: auto-resizing, focus mode, etc. -
windows.nvim
Automatic window sizing with focus animation.
