~whynothugo/lsp_lines.nvim#12: 
virt_lines don't horizontally scroll

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

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

~whynothugo 2 years ago

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.

~whynothugo 2 years ago

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