diff options
| author | kiyan42 <yazdani.kiyan@protonmail.com> | 2020-06-29 16:07:16 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> | 2020-06-30 08:32:49 +0200 |
| commit | ce119de2e3a85ed7f0b081c6733ae167c2fc5599 (patch) | |
| tree | 2cd70208b41ef9af9f62d5f534dd7f0e963bb960 /lua/nvim-treesitter/configs.lua | |
| parent | 2b6b1e3e6159bd689dad677c50a5ab0189df0e08 (diff) | |
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
Diffstat (limited to 'lua/nvim-treesitter/configs.lua')
| -rw-r--r-- | lua/nvim-treesitter/configs.lua | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lua/nvim-treesitter/configs.lua b/lua/nvim-treesitter/configs.lua index da80c818..c31ca4f2 100644 --- a/lua/nvim-treesitter/configs.lua +++ b/lua/nvim-treesitter/configs.lua @@ -184,32 +184,28 @@ M.commands = { args = { "-nargs=1", "-complete=custom,v:lua.ts_available_modules" - }, - description = '`:TSBufEnable module_name` enable a specified module on the current buffer' + } }, TSBufDisable = { run = disable_module, args = { "-nargs=1", "-complete=custom,v:lua.ts_available_modules" - }, - description = '`:TSBufDisable module_name` disable a specified module on the current buffer' + } }, TSEnableAll = { run = enable_all, args = { "-nargs=+", "-complete=custom,v:lua.ts_available_modules" - }, - description = '`:TSEnableAll module_name (filetype)` enables a specified module on all buffers. If filetype is specified, enable only for specified filetype' + } }, TSDisableAll = { run = disable_all, args = { "-nargs=+", "-complete=custom,v:lua.ts_available_modules" - }, - description = '`:TSDisableAll module_name (filetype)` disables a specified module on all buffers. If filetype is specified, disable only for specified filetype' + } }, } |
