diff options
| author | XiaowenHu96 <me@xiaowenhu.com> | 2026-06-27 10:41:12 +0800 |
|---|---|---|
| committer | XiaowenHu96 <me@xiaowenhu.com> | 2026-07-05 21:47:34 +0800 |
| commit | ce718e31f4495b178b4ae8600c5145ccf24252f8 (patch) | |
| tree | 9990cd2f54ab91e8256c33f6136918a25d565ea3 /test/functional/vimscript/executable_spec.lua | |
| parent | 08a1228f8243415d199f4a6c3adce8dc1b36b551 (diff) | |
| download | rneovim-ce718e31f4495b178b4ae8600c5145ccf24252f8.tar.gz rneovim-ce718e31f4495b178b4ae8600c5145ccf24252f8.tar.bz2 rneovim-ce718e31f4495b178b4ae8600c5145ccf24252f8.zip | |
feat(api): add nvim_win_resize()
Ref #6645
Problem:
When a window is resized it takes space from the window right/below first,
and only falls back to the window left/above when there is no more room.
Sometimes a user wants the space to come from a specific direction.
Solution:
Add nvim_win_resize(win, width, height, {anchor}) which resizes a window
with a choosable anchor edge, letting a window grow leftwards or upwards
by taking space from the window to the left or above first. The default
anchor reproduces nvim_win_set_width()/nvim_win_set_height().
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions