From 1ba18329c75b93e5c8b31fbfeea63637c79d1359 Mon Sep 17 00:00:00 2001 From: Santos Gallegos Date: Fri, 4 Sep 2020 12:44:19 -0500 Subject: Refactor: move completion functions to autoload --- lua/nvim-treesitter/install.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'lua/nvim-treesitter/install.lua') 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 -- cgit v1.2.3