We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b5d966 commit e49b0d9Copy full SHA for e49b0d9
1 file changed
lua/nvim-tree/git/utils.lua
@@ -11,7 +11,7 @@ local M = {
11
---@return integer exit code
12
local function system(cmd)
13
if vim.fn.has("nvim-0.10") == 1 then
14
- local obj = vim.system(cmd):wait()
+ local obj = vim.system(cmd):wait(M.opts.git.timeout)
15
return obj.stdout or "", obj.code
16
else
17
return vim.fn.system(cmd), vim.v.shell_error
@@ -199,6 +199,7 @@ function M.setup(opts)
199
if opts.git.cygwin_support then
200
M.use_cygpath = vim.fn.executable("cygpath") == 1
201
end
202
+ M.opts = opts
203
204
205
return M
0 commit comments