diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2025-01-16 18:10:22 +0100 |
---|---|---|
committer | luukvbaal <luukvbaal@gmail.com> | 2025-01-23 10:56:25 +0100 |
commit | 34d808b73cbcb0a43636d826282193ab1ca8c148 (patch) | |
tree | 1a03834e3651002e92bf3a4732b05c061aa97898 /test/functional/ui/sign_spec.lua | |
parent | 8634bd46b26f28fa26950128b0cc585560bd6a9a (diff) | |
download | rneovim-34d808b73cbcb0a43636d826282193ab1ca8c148.tar.gz rneovim-34d808b73cbcb0a43636d826282193ab1ca8c148.tar.bz2 rneovim-34d808b73cbcb0a43636d826282193ab1ca8c148.zip |
feat(api): combined highlights in nvim_eval_statusline()
Problem: Combined highlighting was not applied to nvim_eval_statusline(),
and 'statuscolumn' sign segment/numhl highlights.
Solution: Add an additional `groups` element to the return value of
`nvim_eval_statusline()->highlights`. This is an array of stacked
highlight groups (highest priority last). Also resolve combined
highlights for the 'statuscolumn' sign segment/numhl highlights.
Expose/synchronize some drawline.c logic that is now mimicked in
three different places.
Diffstat (limited to 'test/functional/ui/sign_spec.lua')
-rw-r--r-- | test/functional/ui/sign_spec.lua | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/test/functional/ui/sign_spec.lua b/test/functional/ui/sign_spec.lua index bd3887b44f..ff03d86979 100644 --- a/test/functional/ui/sign_spec.lua +++ b/test/functional/ui/sign_spec.lua @@ -18,8 +18,6 @@ describe('Signs', function() [102] = { foreground = Screen.colors.Brown, background = Screen.colors.Yellow }, [103] = { background = Screen.colors.Yellow, reverse = true }, [104] = { reverse = true, foreground = Screen.colors.Grey100, background = Screen.colors.Red }, - [105] = { bold = true, background = Screen.colors.Red1, foreground = Screen.colors.Gray100 }, - [106] = { foreground = Screen.colors.Brown, reverse = true }, } end) @@ -125,14 +123,7 @@ describe('Signs', function() ]]) -- Check that 'statuscolumn' correctly applies numhl exec('set statuscolumn=%s%=%l\\ ') - screen:expect([[ - {102:>>}{8: 1 }a | - {7: }{8: 2 }{9:b }| - {7: }{13: 3 }c | - {101:>>}{13: 4 }{9:^ }| - {1:~ }|*9 - | - ]]) + screen:expect_unchanged() end) it('highlights the cursorline sign with culhl', function() @@ -189,14 +180,7 @@ describe('Signs', function() -- Check that 'statuscolumn' cursorline/signcolumn highlights are the same (#21726) exec('set statuscolumn=%s') - screen:expect([[ - {102:>>}a | - {105:>>}^b | - {102:>>}c | - {106: } | - {1:~ }|*9 - | - ]]) + screen:expect_unchanged() end) it('multiple signs #9295', function() |