diff options
author | Riley Bruins <ribru17@hotmail.com> | 2024-10-12 10:57:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-12 10:57:31 -0700 |
commit | e049c6e4c08a141c94218672e770f86f91c27a11 (patch) | |
tree | 9ee26aa2f39b30a86410d79a425b1a440c807822 /test/functional/ui/winbar_spec.lua | |
parent | 4b909528516032b002a4a32f3e06f0eb6185ea6b (diff) | |
download | rneovim-e049c6e4c08a141c94218672e770f86f91c27a11.tar.gz rneovim-e049c6e4c08a141c94218672e770f86f91c27a11.tar.bz2 rneovim-e049c6e4c08a141c94218672e770f86f91c27a11.zip |
feat(ui): statusline text inherits highlights #29976
Changes apply to the winbar, statusline, and tabline text.
Diffstat (limited to 'test/functional/ui/winbar_spec.lua')
-rw-r--r-- | test/functional/ui/winbar_spec.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/functional/ui/winbar_spec.lua b/test/functional/ui/winbar_spec.lua index fb907026a5..bbdf3ad9ba 100644 --- a/test/functional/ui/winbar_spec.lua +++ b/test/functional/ui/winbar_spec.lua @@ -40,6 +40,16 @@ describe('winbar', function() bold = true, foreground = Screen.colors.Magenta, }, + [12] = { + underline = true, + background = Screen.colors.Red, + }, + [13] = { + underline = true, + bold = true, + foreground = Screen.colors.Blue, + background = Screen.colors.Red, + }, }) api.nvim_set_option_value('winbar', 'Set Up The Bars', {}) end) @@ -182,6 +192,18 @@ describe('winbar', function() ]]) end) + it('works with combined highlight attributes', function() + command('hi Winbar guibg=red gui=underline') + command('hi Identifier guifg=blue gui=bold') + command('set winbar=Lookatmy%#Identifier#highlights') + screen:expect([[ + {12:Lookatmy}{13:highlights }| + ^ | + {3:~ }|*10 + | + ]]) + end) + it('can be ruler', function() insert [[ just some |