~whynothugo/lsp_lines.nvim#17: 
How to remove jumps when scrolling?

When I scroll up and down with ^D and ^U and vim-smoothie enabled, there is a jump when LSP diagnostics appear on the screen and exit the screen. Is there a way to configure lsp_lines so that ^D and ^U scroll the same amount for diagnostics as regular lines?

Status
REPORTED
Submitter
~pyjamafish
Assigned to
No-one
Submitted
2 years ago
Updated
2 years ago
Labels
No labels applied.

~whynothugo 2 years ago

vim-smoothie works by placing the cursor over individual lines with a small timeout in between, so that the movement ends up being rather smooth rather than a sudden jump.

The jump you see here is because the cursor cannot be placed over diagnostic lines, to jump over them.

Some rather non-trivial integration with vim-smoothie might be possible (it would have to account for virtual lines), but there will always be a jump. I don't think this can be fixed due to how scrolling works on neovim.

~pyjamafish 2 years ago

Ah, gotcha. Thanks for the explanation!

Register here or Log in to comment, or comment via email.