mirror of
https://github.com/neovim/neovim.git
synced 2026-04-25 16:54:12 +00:00
feat(extmarks): add virt_text_repeat_linebreak flag (#26625)
Problem: Unable to predict which byte-offset to place virtual text to
make it repeat visually in the wrapped part of a line.
Solution: Add a flag to nvim_buf_set_extmark() that causes virtual
text to repeat in wrapped lines.
This commit is contained in:
@@ -644,6 +644,7 @@ describe('Buffer highlighting', function()
|
||||
virt_text = s1,
|
||||
-- other details
|
||||
right_gravity = true,
|
||||
virt_text_repeat_linebreak = false,
|
||||
virt_text_pos = 'eol',
|
||||
virt_text_hide = false,
|
||||
}}}, get_extmarks(id1, {0,0}, {0, -1}, {details=true}))
|
||||
@@ -656,6 +657,7 @@ describe('Buffer highlighting', function()
|
||||
virt_text = s2,
|
||||
-- other details
|
||||
right_gravity = true,
|
||||
virt_text_repeat_linebreak = false,
|
||||
virt_text_pos = 'eol',
|
||||
virt_text_hide = false,
|
||||
}}}, get_extmarks(id1, {lastline,0}, {lastline, -1}, {details=true}))
|
||||
|
||||
Reference in New Issue
Block a user