refactor(installer): use new async runner
This commit is contained in:
parent
9881da4db7
commit
c544a2f969
3 changed files with 16 additions and 12 deletions
|
|
@ -23,9 +23,10 @@ end
|
|||
|
||||
---@param cmd (string|number)[]
|
||||
---@param on_exit fun(out:vim.SystemCompleted)
|
||||
---@param opts gopher.RunnerOpts
|
||||
---@param opts? gopher.RunnerOpts
|
||||
---@return vim.SystemObj
|
||||
function runner.async(cmd, on_exit, opts)
|
||||
opts = opts or {}
|
||||
return vim.system(cmd, {
|
||||
cwd = opts.cwd or nil,
|
||||
timeout = opts.timeout or 2000,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue