mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 20:10:10 -04:00
Refactor: move completion functions to autoload
This commit is contained in:
parent
b8453e63b2
commit
1ba18329c7
5 changed files with 36 additions and 35 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue