lsp_lines' virt_lines do not move when scrolling horizontally in the window
(e.g. with nowrap
and long lines). any movement horizontally causes
diagnostic messages to become unaligned.
There is a WinScrolled
autocmd, but ideally we would rely on the extmark
API instead of re-rendering all the time (also that event doesn't fire during
incsearch
and other similar contexts)
nvim --version
: NVIM v0.8.0-dev-nightly-1-g1849cf0e4c
extmarks are positions relative to a line and column on the buffer. Scrolling should keep the mark in the same position relative to the text.
I'm under the impression that this is a neovim bug. A quick look at the docs makes it seem so. I'll investigate a bit more, and report upstream if I can't find anything.
Upstream bug report: https://github.com/neovim/neovim/issues/14050