summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/install.lua
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2020-09-04 12:44:19 -0500
committerThomas Vigouroux <tomvig38@gmail.com>2020-09-04 21:20:30 +0200
commit1ba18329c75b93e5c8b31fbfeea63637c79d1359 (patch)
tree0453cb8017cdf351a72b85905aa4af0bdf0d2d5f /lua/nvim-treesitter/install.lua
parentb8453e63b29d9ddbee0a96122abe8cc5905e4a5c (diff)
Refactor: move completion functions to autoload
Diffstat (limited to 'lua/nvim-treesitter/install.lua')
-rw-r--r--lua/nvim-treesitter/install.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua
index 9993cd8f..8b4aa783 100644
--- a/lua/nvim-treesitter/install.lua
+++ b/lua/nvim-treesitter/install.lua
@@ -235,30 +235,30 @@ M.commands = {
run = install(false, true),
args = {
"-nargs=+",
- "-complete=custom,v:lua.ts_installable_parsers"
- }
+ "-complete=customlist,nvim_treesitter#installable_parsers",
+ },
},
TSInstallSync = {
run = install(true, true),
args = {
"-nargs=+",
- "-complete=custom,v:lua.ts_installable_parsers"
- }
+ "-complete=customlist,nvim_treesitter#installable_parsers",
+ },
},
TSUpdate = {
run = M.update,
args = {
"-nargs=*",
- "-complete=custom,v:lua.ts_installed_parsers"
- }
+ "-complete=customlist,nvim_treesitter#installed_parsers",
+ },
},
TSUninstall = {
run = M.uninstall,
args = {
"-nargs=+",
- "-complete=custom,v:lua.ts_installed_parsers"
- }
- }
+ "-complete=customlist,nvim_treesitter#installed_parsers",
+ },
+ },
}
return M