Open alex35mil opened 5 months ago
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.
zz
<C-y>/<C-e>
require("lspsaga.diagnostic"):goto_X
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.
Floating window moves with the screen.
P.S. Or at least having an option to center the diagnostic origin.
NVIM v0.10.0-dev-2138+gfa9a85ae4 Build type: Release LuaJIT 2.1.1703358377
a4d4428
Alacritty 0.12.2 (1)
I found this issue - ~it was addressed, but looks like the fix was reverted~.
EDIT: Sorry, it was reverted in a fork.
Describe the bug
When I run
zz
(or<C-y>/<C-e>
) afterrequire("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.
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)