nvimdev / lspsaga.nvim

improve neovim lsp experience
MIT License
3.44k stars 286 forks source link

Floating window with diagnostic details don't follow scroll nor z motions #1421

Open alex35mil opened 5 months ago

alex35mil commented 5 months ago

Describe the bug

When I run zz (or <C-y>/<C-e>) after require("lspsaga.diagnostic"):goto_X, the floating window with diagnostic details remains at the same position.

Steps to reproduce

Have an error in a buffer outside the viewport.

require("lspsaga.diagnostic"):goto_prev({ severity = vim.diagnostic.severity.ERROR })
vim.cmd("normal! zz")

Floating window will remain in its original position.

Expected behavior

Floating window moves with the screen.

P.S. Or at least having an option to center the diagnostic origin.

Neovim version (nvim -v)

NVIM v0.10.0-dev-2138+gfa9a85ae4 Build type: Release LuaJIT 2.1.1703358377

lspsaga commit

a4d4428

Terminal name/version

Alacritty 0.12.2 (1)

alex35mil commented 5 months ago

I found this issue - ~it was addressed, but looks like the fix was reverted~.

EDIT: Sorry, it was reverted in a fork.