~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
1 year, 8 months ago
Updated
1 year, 4 months ago
Labels
No labels applied.

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

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