mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -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
|
end
|
||||||
if vim.fn.executable('tree-sitter') == 0 or vim.fn.executable('node') == 0 then
|
if vim.fn.executable('tree-sitter') == 0 or vim.fn.executable('node') == 0 then
|
||||||
parsers = vim.iter.filter(function(p)
|
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, parsers) --[[@as string[] ]]
|
||||||
end
|
end
|
||||||
return parsers
|
return parsers
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue