mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
feat(signs)!: place higher-priority signs from the left #27781
Problem: Higher-priority signs may be hidden by lower-priority signs. Solution: Place higher-priority signs from the left. Example: nvim_buf_set_extmark(0, ns, 0, -1, {sign_text='H', priority=1}) nvim_buf_set_extmark(0, ns, 0, -1, {sign_text='W', priority=2}) nvim_buf_set_extmark(0, ns, 0, -1, {sign_text='E', priority=3}) Before: | | H | W E | ^ | | Not visible After: | | | E W | H | | ^ Not visible Fixes #16632
This commit is contained in:
@@ -3918,13 +3918,13 @@ describe('API', function()
|
||||
norm 4G
|
||||
]])
|
||||
eq({
|
||||
str = '││aabb 4 ',
|
||||
str = '││bbaa 4 ',
|
||||
width = 9,
|
||||
highlights = {
|
||||
{ group = 'CursorLineFold', start = 0 },
|
||||
{ group = 'Normal', start = 6 },
|
||||
{ group = 'IncSearch', start = 6 },
|
||||
{ group = 'ErrorMsg', start = 8 },
|
||||
{ group = 'ErrorMsg', start = 6 },
|
||||
{ group = 'IncSearch', start = 8 },
|
||||
{ group = 'Normal', start = 10 },
|
||||
},
|
||||
}, api.nvim_eval_statusline(
|
||||
|
Reference in New Issue
Block a user