mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 04:50:03 -04:00
fix: check if config has install_info in filter
This commit is contained in:
parent
36762ec3f8
commit
6337f0872d
1 changed files with 2 additions and 1 deletions
|
|
@ -2060,7 +2060,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