committed by
GitHub
parent
d05881f65f
commit
70825f23db
@@ -80,7 +80,7 @@ local function show()
|
||||
local details = extmark[4]
|
||||
|
||||
if type(details) == "table" then
|
||||
if vim.fn.has("nvim-0.12") == 1 then
|
||||
if vim.fn.has("nvim-0.11") == 1 and vim.hl and vim.hl.range then
|
||||
vim.hl.range(0, ns_id, details.hl_group, { 0, col }, { 0, details.end_col, }, {})
|
||||
else
|
||||
vim.api.nvim_buf_add_highlight(0, ns_id, details.hl_group, 0, col, details.end_col) ---@diagnostic disable-line: deprecated
|
||||
|
||||
Reference in New Issue
Block a user