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/info.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lua/nvim-treesitter/info.lua') diff --git a/lua/nvim-treesitter/info.lua b/lua/nvim-treesitter/info.lua index 092c7c8c..77fd945f 100644 --- a/lua/nvim-treesitter/info.lua +++ b/lua/nvim-treesitter/info.lua @@ -91,15 +91,15 @@ M.commands = { run = install_info, args = { "-nargs=0", - } + }, }, TSModuleInfo = { run = module_info, args = { "-nargs=?", - "-complete=custom,v:lua.ts_available_modules" - } - } + "-complete=customlist,nvim_treesitter#available_modules", + }, + }, } return M -- cgit v1.2.3