mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-22 21:30:06 -04:00
fix(install): skip tier 4 parsers when installing and updating
This commit is contained in:
parent
9365cf8a97
commit
328ee3db54
6 changed files with 51 additions and 40 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue