MunifTanjim / nui.nvim

UI Component Library for Neovim.
MIT License
1.62k stars 57 forks source link

Popup: Don't reposition if only size has changed #384

Open PolyMeilex opened 1 month ago

PolyMeilex commented 1 month ago

Currently there is no way to resize the popup without causing repositioning. So changing only the size of a popup that's positioned relative to cursor position, will cause it to move to potentially new cursor position.

So this is an attempt to update only the size of the window if position related properties have not changed during the relayout.