mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00:02 -04:00
add command to install all parsers
This commit is contained in:
parent
d04a833e20
commit
5e91955b6a
1 changed files with 7 additions and 0 deletions
|
|
@ -143,6 +143,13 @@ M.commands = {
|
||||||
"-complete=custom,v:lua.ts_installable_parsers"
|
"-complete=custom,v:lua.ts_installable_parsers"
|
||||||
},
|
},
|
||||||
description = '`:TSInstall {lang}` installs a parser under nvim-treesitter/parser/{lang}.so'
|
description = '`:TSInstall {lang}` installs a parser under nvim-treesitter/parser/{lang}.so'
|
||||||
|
},
|
||||||
|
TSInstallAll = {
|
||||||
|
run = function()
|
||||||
|
for _, lang in pairs(parsers.available_parsers()) do
|
||||||
|
install(lang)
|
||||||
|
end
|
||||||
|
end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue