mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-21 20:11:06 +00:00
fix(treesiter): check that disable options are tables
This commit is contained in:
parent
c1aef3b62a
commit
e8c5fa7eae
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue