Skip to content

Commit

Permalink
fix: thoroughly test for current Neovim version
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Jun 11, 2024
1 parent 7cdf110 commit 352570c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/neorg/modules/core/concealer/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ local has_anticonceal = (function()
sub_version = tonumber(sub_version)
return sub_version and sub_version > 575
end)()
local has_extmark_invalidation = utils.is_minimum_version(0, 10, 0)

local module = modules.create("core.concealer", {
"preset_basic",
Expand Down Expand Up @@ -139,8 +140,7 @@ local function set_mark(bufid, row_0b, col_0b, text, highlight, ext_opts)
ui_watched = nil,
}

-- proxy for nvim 0.10+
if vim.version then
if has_extmark_invalidation then
opt["invalidate"] = true
end

Expand Down

0 comments on commit 352570c

Please sign in to comment.