Add TSUpdate command to update parsers

This commit is contained in:
Stephan Seitz 2020-07-31 20:27:06 +02:00 committed by Stephan Seitz
parent a855538e0a
commit a872762d82
4 changed files with 43 additions and 4 deletions

View file

@ -76,6 +76,16 @@ local function module_info(mod)
end
end
function M.installed_parsers()
local installed = {}
for _, p in pairs(parsers.available_parsers()) do
if parsers.has_parser(p) then
table.insert(installed, p)
end
end
return installed
end
M.commands = {
TSInstallInfo = {
run = install_info,