aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authorxzb <2598514867@qq.com>2025-03-12 05:49:27 +0800
committerChristian Clason <ch.clason+github@icloud.com>2025-03-16 12:31:29 +0100
commit17c25a66fceaed7decbda2386fd263775ce4be05 (patch)
tree865ffa06729c72aae74894dcdb8e0739fd2b4478 /runtime/lua/vim
parent72f630f92dc806e96c064c0e75248c27b26c5171 (diff)
downloadrneovim-17c25a66fceaed7decbda2386fd263775ce4be05.tar.gz
rneovim-17c25a66fceaed7decbda2386fd263775ce4be05.tar.bz2
rneovim-17c25a66fceaed7decbda2386fd263775ce4be05.zip
fix(diagnostic): virtual lines should scroll horizontally
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/diagnostic.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/lua/vim/diagnostic.lua b/runtime/lua/vim/diagnostic.lua
index 1473b8dd47..2cfa97ac40 100644
--- a/runtime/lua/vim/diagnostic.lua
+++ b/runtime/lua/vim/diagnostic.lua
@@ -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