update installer with sync and some fixes

- add sync method for installing using `system`
- remove `descriptions` in command configs
- use install(lang) in ensure_installed and make it compatible
This commit is contained in:
kiyan42 2020-06-29 16:07:16 +02:00 committed by Thomas Vigouroux
parent 2b6b1e3e61
commit ce119de2e3
3 changed files with 92 additions and 65 deletions

View file

@ -81,16 +81,14 @@ M.commands = {
run = install_info,
args = {
"-nargs=0",
},
description = '`:TSInstallInfo` print installation state for every filetype'
}
},
TSModuleInfo = {
run = module_info,
args = {
"-nargs=?",
"-complete=custom,v:lua.ts_available_modules"
},
description = '`:TSModuleInfo` print module state for every filetype, if module is specified, only for current module'
}
}
}