mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 12:50:09 -04:00
fix: check if config has install_info in filter
This commit is contained in:
parent
18c1e34aeb
commit
6c039b8ae2
1 changed files with 2 additions and 1 deletions
|
|
@ -2972,7 +2972,8 @@ function M.get_available(tier)
|
|||
end
|
||||
if vim.fn.executable('tree-sitter') == 0 or vim.fn.executable('node') == 0 then
|
||||
parsers = vim.iter.filter(function(p)
|
||||
return not M.configs[p].install_info.requires_generate_from_grammar
|
||||
return M.configs[p].install_info
|
||||
and not M.configs[p].install_info.requires_generate_from_grammar
|
||||
end, parsers) --[[@as string[] ]]
|
||||
end
|
||||
return parsers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue