Skip to content

Commit

Permalink
Merge pull request #6 from sbaildon/master
Browse files Browse the repository at this point in the history
combine highlights for virtual text
  • Loading branch information
jubnzv authored Jan 8, 2022
2 parents 9ef9f31 + f7c8994 commit 7d25c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/virtualtypes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ local M = {}
local set_virtual_text
if vim.api.nvim_call_function('exists', {'*nvim_buf_set_extmark'}) == 1 then
set_virtual_text = function(buffer_number, ns, start_line, msg)
api.nvim_buf_set_extmark(buffer_number, ns, start_line, 1, { virt_text = { msg } } )
api.nvim_buf_set_extmark(buffer_number, ns, start_line, 1, { virt_text = { msg }, hl_mode = 'combine' } )
end
else
set_virtual_text = function(buffer_number, ns, start_line, msg)
Expand Down

0 comments on commit 7d25c31

Please sign in to comment.