fix(treesiter): check that disable options are tables

This commit is contained in:
Folke Lemaitre
2025-10-10 20:57:42 +02:00
parent c1aef3b62a
commit e8c5fa7eae

View File

@@ -110,7 +110,7 @@ return {
local function enabled(feat, query)
local f = opts[feat] or {} ---@type lazyvim.TSFeat
return f.enable ~= false
and not vim.tbl_contains(f.disable or {}, lang)
and not (type(f.disable) == "table" and vim.tbl_contains(f.disable, lang))
and LazyVim.treesitter.have(ft, query)
end