diff options
| author | Santos Gallegos <stsewd@protonmail.com> | 2020-09-04 12:44:19 -0500 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2020-09-04 21:20:30 +0200 |
| commit | 1ba18329c75b93e5c8b31fbfeea63637c79d1359 (patch) | |
| tree | 0453cb8017cdf351a72b85905aa4af0bdf0d2d5f /lua/nvim-treesitter/install.lua | |
| parent | b8453e63b29d9ddbee0a96122abe8cc5905e4a5c (diff) | |
Refactor: move completion functions to autoload
Diffstat (limited to 'lua/nvim-treesitter/install.lua')
| -rw-r--r-- | lua/nvim-treesitter/install.lua | 18 |
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 |
