fix(install): skip tier 4 parsers when installing and updating

This commit is contained in:
Christian Clason 2025-03-26 13:08:49 +01:00
parent 9365cf8a97
commit 328ee3db54
6 changed files with 51 additions and 40 deletions

View file

@ -134,7 +134,7 @@ function M.get_indent(lnum)
end
-- Get language tree with smallest range around node that's not a comment parser
local root, lang_tree ---@type TSNode, LanguageTree
local root, lang_tree ---@type TSNode, vim.treesitter.LanguageTree
parser:for_each_tree(function(tstree, tree)
if not tstree or M.comment_parsers[tree:lang()] then
return