feat(install)!: always generate from json if possible

This commit is contained in:
Christian Clason 2025-04-27 14:00:40 +02:00
parent 522e0c6991
commit bdc2e01958
6 changed files with 347 additions and 374 deletions

View file

@ -16,8 +16,8 @@ table.sort(sorted_parsers, function(a, b)
end)
local generated_text = [[
Language | Tier | Queries | Maintainer
-------- |:----:|:-------:| ----------
Language | Tier | Queries | Node | Maintainer
-------- |:----:|:-------:|:----:| ----------
]]
local footnotes = ''
@ -58,6 +58,11 @@ for _, v in ipairs(sorted_parsers) do
.. (vim.uv.fs_stat('runtime/queries/' .. v.name .. '/locals.scm') and 'L' or ' ')
.. '` | '
-- node
generated_text = generated_text
.. (p.install_info and p.install_info.generate_from_json == false and 'X' or ' ')
.. ' | '
-- Maintainer
generated_text = generated_text
.. (p.maintainers and table.concat(p.maintainers, ', ') or '')