diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-07-16 10:17:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-16 10:17:29 +0200 |
commit | 8a3f8589a3eda5d42068fad5f5430f4e648f6f0e (patch) | |
tree | 148155fd00a28ad8979292ec5af5a39072411a4c /test/functional/ui/highlight_spec.lua | |
parent | 6aab5715c55504bf6301a5d4bc113485e881c6ae (diff) | |
parent | 857b29bdd8e093948311c5254a84745c9324b496 (diff) | |
download | rneovim-8a3f8589a3eda5d42068fad5f5430f4e648f6f0e.tar.gz rneovim-8a3f8589a3eda5d42068fad5f5430f4e648f6f0e.tar.bz2 rneovim-8a3f8589a3eda5d42068fad5f5430f4e648f6f0e.zip |
Merge pull request #10504 from bfredl/hl_def
highlight: expose builtin highlight groups using hl_group_set event
Diffstat (limited to 'test/functional/ui/highlight_spec.lua')
-rw-r--r-- | test/functional/ui/highlight_spec.lua | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/test/functional/ui/highlight_spec.lua b/test/functional/ui/highlight_spec.lua index 85b5aed2f8..08566fe493 100644 --- a/test/functional/ui/highlight_spec.lua +++ b/test/functional/ui/highlight_spec.lua @@ -311,6 +311,38 @@ describe('highlight defaults', function() [1] = {foreground=Screen.colors.Blue}, }) end) + + it('are sent to UIs', function() + screen:try_resize(53, 4) + screen:set_default_attr_ids({ + [0] = {}, + [1] = {bold = true, foreground = Screen.colors.Blue1}, + [2] = {bold = true, reverse = true}, + [3] = {italic=true} + }) + screen:expect{grid=[[ + ^ | + {1:~ }| + {1:~ }| + | + ]], hl_groups={EndOfBuffer=1, MsgSeparator=2}} + + command('highlight EndOfBuffer gui=italic') + screen:expect{grid=[[ + ^ | + {3:~ }| + {3:~ }| + | + ]], hl_groups={EndOfBuffer=3, MsgSeparator=2}} + + command('highlight clear EndOfBuffer') + screen:expect{grid=[[ + ^ | + ~ | + ~ | + | + ]], hl_groups={EndOfBuffer=0, MsgSeparator=2}} + end) end) describe('highlight', function() |