diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2024-03-08 14:44:58 +0100 |
---|---|---|
committer | Luuk van Baal <luukvbaal@gmail.com> | 2024-11-09 14:28:17 +0100 |
commit | 4f9260d06a48216862ebb34fc33744486b058f58 (patch) | |
tree | f69ecc9f6556e504af0f0b4aa04a72380f866162 /test/functional/lua/ui_event_spec.lua | |
parent | 5cfa7a72f8c40cdcc0fa93693689915e913806f1 (diff) | |
download | rneovim-4f9260d06a48216862ebb34fc33744486b058f58.tar.gz rneovim-4f9260d06a48216862ebb34fc33744486b058f58.tar.bz2 rneovim-4f9260d06a48216862ebb34fc33744486b058f58.zip |
feat(ext_messages): add hl_id to ext_messages chunks
Problem: Ext_messages chunks only contain the highlight attr id, which
is not very useful for vim.ui_attach() consumers.
Solotion: Add highlight group id to message chunks, which can easily be
used to highlight text in the TUI through nvim_buf_set_extmark():
hl_group = synIDattr(id, "name").
Diffstat (limited to 'test/functional/lua/ui_event_spec.lua')
-rw-r--r-- | test/functional/lua/ui_event_spec.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/lua/ui_event_spec.lua b/test/functional/lua/ui_event_spec.lua index 0a6deaa41c..52045b76ff 100644 --- a/test/functional/lua/ui_event_spec.lua +++ b/test/functional/lua/ui_event_spec.lua @@ -151,9 +151,9 @@ describe('vim.ui_attach', function() { 'msg_history_show', { - { 'echomsg', { { 0, 'message1' } } }, - { '', { { 0, 'message2' } } }, - { 'echomsg', { { 0, 'message3' } } }, + { 'echomsg', { { 0, 'message1', 0 } } }, + { '', { { 0, 'message2', 0 } } }, + { 'echomsg', { { 0, 'message3', 0 } } }, }, }, }, actual, vim.inspect(actual)) |