mirror of https://github.com/folke/lazy.nvim.git
test: process config timeout can be nil
This commit is contained in:
parent
bd2d64230f
commit
c1a05a5f9b
|
@ -15,7 +15,7 @@ local uv = vim.loop
|
|||
---@param opts? ProcessOpts
|
||||
function M.spawn(cmd, opts)
|
||||
opts = opts or {}
|
||||
opts.timeout = opts.timeout or (Config.options.git.timeout * 1000)
|
||||
opts.timeout = opts.timeout or (Config.options.git and Config.options.git.timeout * 1000)
|
||||
|
||||
local env = {
|
||||
"GIT_TERMINAL_PROMPT=0",
|
||||
|
|
Loading…
Reference in New Issue