diff options
| author | kiyan42 <yazdani.kiyan@protonmail.com> | 2020-06-25 12:02:06 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> | 2020-06-25 13:52:29 +0200 |
| commit | 5e91955b6afd450899e6fd4a10ffaa6601be53b0 (patch) | |
| tree | cdba8a5c1315ddd2d19dec6c023023ea1b44723a /lua | |
| parent | fix(locals): compute locals after later tick (diff) | |
| download | nvim-treesitter-5e91955b6afd450899e6fd4a10ffaa6601be53b0.tar nvim-treesitter-5e91955b6afd450899e6fd4a10ffaa6601be53b0.tar.gz nvim-treesitter-5e91955b6afd450899e6fd4a10ffaa6601be53b0.tar.bz2 nvim-treesitter-5e91955b6afd450899e6fd4a10ffaa6601be53b0.tar.lz nvim-treesitter-5e91955b6afd450899e6fd4a10ffaa6601be53b0.tar.xz nvim-treesitter-5e91955b6afd450899e6fd4a10ffaa6601be53b0.tar.zst nvim-treesitter-5e91955b6afd450899e6fd4a10ffaa6601be53b0.zip | |
add command to install all parsers
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-treesitter/install.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua index 2d33dafda..2a9257f73 100644 --- a/lua/nvim-treesitter/install.lua +++ b/lua/nvim-treesitter/install.lua @@ -143,6 +143,13 @@ M.commands = { "-complete=custom,v:lua.ts_installable_parsers" }, 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 } } |
