diff options
| author | Lewis Russell <lewis6991@gmail.com> | 2023-05-22 14:35:25 +0100 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2025-05-12 18:43:40 +0200 |
| commit | cde679e435ade757733772236abf299fc06da231 (patch) | |
| tree | 1de16351d97974d189e2ea96780d73048f566f4d /plugin | |
| parent | refactor: use vim.fs.joinpath (diff) | |
| download | nvim-treesitter-cde679e435ade757733772236abf299fc06da231.tar nvim-treesitter-cde679e435ade757733772236abf299fc06da231.tar.gz nvim-treesitter-cde679e435ade757733772236abf299fc06da231.tar.bz2 nvim-treesitter-cde679e435ade757733772236abf299fc06da231.tar.lz nvim-treesitter-cde679e435ade757733772236abf299fc06da231.tar.xz nvim-treesitter-cde679e435ade757733772236abf299fc06da231.tar.zst nvim-treesitter-cde679e435ade757733772236abf299fc06da231.zip | |
refactor: rewrite installation using jobs and async
Replace sync variants with callback support
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/nvim-treesitter.lua | 28 |
1 files changed, 6 insertions, 22 deletions
diff --git a/plugin/nvim-treesitter.lua b/plugin/nvim-treesitter.lua index 3ab264d41..fcf44d537 100644 --- a/plugin/nvim-treesitter.lua +++ b/plugin/nvim-treesitter.lua @@ -45,19 +45,6 @@ end, { desc = 'Install treesitter parsers from grammar', }) -api.nvim_create_user_command('TSInstallSync', function(args) - require('nvim-treesitter.install').install(args.fargs, { - with_sync = true, - force = args.bang, - }) -end, { - nargs = '+', - bang = true, - bar = true, - complete = complete_available_parsers, - desc = 'Install treesitter parsers synchronously', -}) - api.nvim_create_user_command('TSUpdate', function(args) require('nvim-treesitter.install').update(args.fargs) end, { @@ -67,15 +54,6 @@ end, { desc = 'Update installed treesitter parsers', }) -api.nvim_create_user_command('TSUpdateSync', function(args) - require('nvim-treesitter.install').update(args.fargs, { with_sync = true }) -end, { - nargs = '*', - bar = true, - complete = complete_installed_parsers, - desc = 'Update installed treesitter parsers synchronously', -}) - api.nvim_create_user_command('TSUninstall', function(args) require('nvim-treesitter.install').uninstall(args.fargs) end, { @@ -84,3 +62,9 @@ end, { complete = complete_installed_parsers, desc = 'Uninstall treesitter parsers', }) + +api.nvim_create_user_command('TSLog', function() + require('nvim-treesitter.log').show() +end, { + desc = 'View log messages', +}) |
