From f7c8994980442fda1f70b124fc9e5ca8b5c43afb Mon Sep 17 00:00:00 2001 From: Sean Baildon Date: Fri, 7 Jan 2022 23:51:09 +0000 Subject: [PATCH] combine highlights for virtual text --- lua/virtualtypes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/virtualtypes.lua b/lua/virtualtypes.lua index 21fbed4..8f1e1c4 100644 --- a/lua/virtualtypes.lua +++ b/lua/virtualtypes.lua @@ -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)