First of all, thank you for this really cool project!
When trying out the new feature to conditionally disable highlights I have run into some problems:
Error detected while processing BufReadPost Autocommands for "*":
Error executing lua callback: ...neovim-unwrapped-nightly/share/nvim/runtime/filetype.lua:36: BufReadPost Autocommands for "*"..FileType Autocommands for "lua"..FileType Autocommands for "lua"..FileType A
utocommands for "*": Vim(append):Error executing lua callback: .../nvim/rocks/rocks_rtp/lua/rocks_treesitter/highlight.lua:142: attempt to index field 'disable' (a function value)
Expected result
Should highlight file with no problem.
I think it might be related to the associativity of operators in:
local disable = type(config.disable) == "function" and config.disable(lang, bufnr)
or config.disable[filetype]
where the or config.disable[filetype] ends up always being executed.
First of all, thank you for this really cool project! When trying out the new feature to conditionally disable highlights I have run into some problems:
Configuration to reproduce
Result
Entering any buffer produces the following error:
Expected result
Should highlight file with no problem.
I think it might be related to the associativity of operators in:
where the
or config.disable[filetype]
ends up always being executed.