fix(diagnostic): virtual lines should scroll horizontally

This commit is contained in:
xzb
2025-03-12 05:49:27 +08:00
committed by Christian Clason
parent 72f630f92d
commit 17c25a66fc

View File

@ -1871,7 +1871,10 @@ local function render_virtual_lines(namespace, bufnr, diagnostics)
end
end
api.nvim_buf_set_extmark(bufnr, namespace, lnum, 0, { virt_lines = virt_lines })
api.nvim_buf_set_extmark(bufnr, namespace, lnum, 0, {
virt_lines_overflow = 'scroll',
virt_lines = virt_lines,
})
end
end