Refactor: move completion functions to autoload

This commit is contained in:
Santos Gallegos 2020-09-04 12:44:19 -05:00 committed by Thomas Vigouroux
parent b8453e63b2
commit 1ba18329c7
5 changed files with 36 additions and 35 deletions

View file

@ -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