diff options
| author | Daigo Yamashita <squiffer9@duck.com> | 2026-04-26 12:41:13 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-26 15:41:13 -0400 |
| commit | 8308544fe588f34f5e1985d1fb37f64b41f91873 (patch) | |
| tree | 9c09f5a55821635dfb10f1ac54667355d030ac4f /runtime/lua/vim/provider/python.lua | |
| parent | 834047cb147f684694a23b419425ab36bb2da3e7 (diff) | |
| download | rneovim-8308544fe588f34f5e1985d1fb37f64b41f91873.tar.gz rneovim-8308544fe588f34f5e1985d1fb37f64b41f91873.tar.bz2 rneovim-8308544fe588f34f5e1985d1fb37f64b41f91873.zip | |
fix(lsp): handle relative='editor' in make_floating_popup_options() #39320
Problem: With `vim.g.health = { style = 'float' }`, running
`:checkhealth` from a `:help` buffer placed the float in the
top-left corner instead of centered.
make_floating_popup_options() picks the NW/NE/SW/SE anchor
and the available height from cursor-relative metrics
(winline(), wincol(), winheight()). When the caller passes
relative='editor', those metrics are meaningless, so the
function could flip to an 'E' anchor and clamp the float
off-screen.
Solution: When relative='editor', treat the whole editor area as
available space (lines_above=0, lines_below=&lines,
wincol=0). This makes the NW anchor the natural choice and
keeps the float position stable regardless of where the
cursor is in the current window.
AI-assisted: Claude Code
Diffstat (limited to 'runtime/lua/vim/provider/python.lua')
0 files changed, 0 insertions, 0 deletions