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?

Assigned to
1 year, 8 months ago
1 year, 8 months ago
No labels applied.

~whynothugo 1 year, 8 months 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 1 year, 8 months ago

Ah, gotcha. Thanks for the explanation!

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