Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alex35mil opened this issue Apr 13, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@alex35mil
Copy link

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 alex35mil added the bug Something isn't working label Apr 13, 2024
@alex35mil
Copy link
Author

alex35mil commented Apr 13, 2024

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

EDIT: Sorry, it was reverted in a fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant