Skip to content

Commit

Permalink
Fix errors with HLS
Browse files Browse the repository at this point in the history
See: #7
  • Loading branch information
jubnzv committed Feb 14, 2022
1 parent 7d25c31 commit 094fcf2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/virtualtypes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ 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)
if (type(msg[1]) ~= "string") or (msg[2] ~= "TypeAnnot") then
return
end
api.nvim_buf_set_extmark(buffer_number, ns, start_line, 1, { virt_text = { msg }, hl_mode = 'combine' } )
end
else
Expand Down

0 comments on commit 094fcf2

Please sign in to comment.