Files
neovim/runtime/lua/vim
XiaowenHu96 ce718e31f4 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().
2026-07-05 21:47:34 +08:00
..
2026-07-05 21:47:34 +08:00
2026-07-05 21:47:34 +08:00
2026-07-05 21:47:34 +08:00
2026-05-10 11:03:15 -04:00
2026-06-08 16:12:14 -04:00
2026-01-09 10:07:15 +01:00
2026-05-30 12:57:24 +02:00
2026-05-11 16:51:58 +08:00
2026-05-10 11:03:15 -04:00
2026-05-30 12:57:24 +02:00