aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/install.lua7
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
}
}