mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 13:30:01 -04:00
Re-add prefer-git option
This commit is contained in:
parent
75797cdd8a
commit
5c3fc1e61f
3 changed files with 141 additions and 15 deletions
|
|
@ -17,10 +17,12 @@ for i = 1, #_G.arg do
|
|||
end
|
||||
|
||||
vim.opt.runtimepath:append('.')
|
||||
local ts = require('nvim-treesitter')
|
||||
ts.setup({ prefer_git = true })
|
||||
|
||||
---@type async.Task
|
||||
local task = update and require('nvim-treesitter').update('all', { summary = true })
|
||||
or require('nvim-treesitter').install(
|
||||
local task = update and ts.update('all', { summary = true })
|
||||
or ts.install(
|
||||
#parsers > 0 and parsers or 'all',
|
||||
{ force = true, summary = true, generate = generate, max_jobs = max_jobs }
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue