mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 08:20:05 -04:00
fix: update vim.system types
This commit is contained in:
parent
efbc2a4b72
commit
59f5d64a61
1 changed files with 2 additions and 2 deletions
|
|
@ -44,7 +44,7 @@ end
|
||||||
|
|
||||||
local function system(cmd, opts)
|
local function system(cmd, opts)
|
||||||
log.trace('running job: (cwd=%s) %s', opts.cwd, table.concat(cmd, ' '))
|
log.trace('running job: (cwd=%s) %s', opts.cwd, table.concat(cmd, ' '))
|
||||||
local r = a.wrap(vim.system, 3)(cmd, opts) --[[@as SystemCompleted]]
|
local r = a.wrap(vim.system, 3)(cmd, opts) --[[@as vim.SystemCompleted]]
|
||||||
a.main()
|
a.main()
|
||||||
if r.stdout and r.stdout ~= '' then
|
if r.stdout and r.stdout ~= '' then
|
||||||
log.trace('stdout -> %s', r.stdout)
|
log.trace('stdout -> %s', r.stdout)
|
||||||
|
|
@ -416,7 +416,7 @@ end
|
||||||
---@param repo InstallInfo
|
---@param repo InstallInfo
|
||||||
---@param cc string
|
---@param cc string
|
||||||
---@param compile_location string
|
---@param compile_location string
|
||||||
---@return SystemCompleted
|
---@return vim.SystemCompleted
|
||||||
local function do_compile(repo, cc, compile_location)
|
local function do_compile(repo, cc, compile_location)
|
||||||
local args = vim.tbl_flatten(select_compiler_args(repo, cc))
|
local args = vim.tbl_flatten(select_compiler_args(repo, cc))
|
||||||
local cmd = vim.list_extend({ cc }, args)
|
local cmd = vim.list_extend({ cc }, args)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue