mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
fix(install): return task object in API functions
This commit is contained in:
parent
d08cf75e1b
commit
011f02936f
2 changed files with 5 additions and 5 deletions
|
|
@ -22,8 +22,8 @@ vim.opt.runtimepath:append('.')
|
|||
vim.fn.mkdir(vim.fn.stdpath('cache'), 'p')
|
||||
|
||||
---@type async.Task
|
||||
local task = update and require('nvim-treesitter.install').update('all')
|
||||
or require('nvim-treesitter.install').install(
|
||||
local task = update and require('nvim-treesitter').update('all')
|
||||
or require('nvim-treesitter').install(
|
||||
#parsers > 0 and parsers or 'all',
|
||||
{ force = true, generate = generate, max_jobs = max_jobs }
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue