From ce119de2e3a85ed7f0b081c6733ae167c2fc5599 Mon Sep 17 00:00:00 2001 From: kiyan42 Date: Mon, 29 Jun 2020 16:07:16 +0200 Subject: 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 --- lua/nvim-treesitter/configs.lua | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'lua/nvim-treesitter/configs.lua') 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' + } }, } -- cgit v1.2.3