mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 13:30:01 -04:00
Add TSUpdate command to update parsers
This commit is contained in:
parent
a855538e0a
commit
a872762d82
4 changed files with 43 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue