diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2025-05-29 12:25:13 +0200 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2025-05-29 20:08:10 +0200 |
| commit | ff770d718b34db10e33d18594153b4d1e0954882 (patch) | |
| tree | c563416adeea24f474fe3ea5d2c36753ae6b5e93 /scripts | |
| parent | feat(api): expose list of available and installed languages (diff) | |
| download | nvim-treesitter-ff770d718b34db10e33d18594153b4d1e0954882.tar nvim-treesitter-ff770d718b34db10e33d18594153b4d1e0954882.tar.gz nvim-treesitter-ff770d718b34db10e33d18594153b4d1e0954882.tar.bz2 nvim-treesitter-ff770d718b34db10e33d18594153b4d1e0954882.tar.lz nvim-treesitter-ff770d718b34db10e33d18594153b4d1e0954882.tar.xz nvim-treesitter-ff770d718b34db10e33d18594153b4d1e0954882.tar.zst nvim-treesitter-ff770d718b34db10e33d18594153b4d1e0954882.zip | |
fix(install): don't print operation summary by default
Problem: People complain about noisy `install()`.
Solution: Gate operation summary behind `summary` install option
(default false, set to true for interactive `:TS*` commands).
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/install-parsers.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/install-parsers.lua b/scripts/install-parsers.lua index e3804cab8..2d083f3c3 100755 --- a/scripts/install-parsers.lua +++ b/scripts/install-parsers.lua @@ -19,10 +19,10 @@ end vim.opt.runtimepath:append('.') ---@type async.Task -local task = update and require('nvim-treesitter').update('all') +local task = update and require('nvim-treesitter').update('all', { summary = true }) or require('nvim-treesitter').install( #parsers > 0 and parsers or 'all', - { force = true, generate = generate, max_jobs = max_jobs } + { force = true, summary = true, generate = generate, max_jobs = max_jobs } ) local ok, err_or_ok = task:pwait(1800000) -- wait max. 30 minutes |
