committed by
GitHub
parent
d5d6950a0d
commit
164eb10cbd
@@ -502,9 +502,6 @@ applying configuration.
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
experimental = {
|
experimental = {
|
||||||
git = {
|
|
||||||
async = true,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
log = {
|
log = {
|
||||||
enable = false,
|
enable = false,
|
||||||
@@ -1275,13 +1272,6 @@ General UI configuration.
|
|||||||
Experimental features that may become default or optional functionality.
|
Experimental features that may become default or optional functionality.
|
||||||
In the event of a problem please disable the experiment and raise an issue.
|
In the event of a problem please disable the experiment and raise an issue.
|
||||||
|
|
||||||
*nvim-tree.experimental.git.async*
|
|
||||||
Direct file writes and `.git/` writes are executed asynchronously: the
|
|
||||||
git process runs in the background. The tree updates on completion.
|
|
||||||
Other git actions such as first tree draw and explicit refreshes are still
|
|
||||||
done in the foreground.
|
|
||||||
Type: `boolean`, Default: `true`
|
|
||||||
|
|
||||||
*nvim-tree.log*
|
*nvim-tree.log*
|
||||||
Configuration for diagnostic logging.
|
Configuration for diagnostic logging.
|
||||||
|
|
||||||
|
|||||||
@@ -559,11 +559,7 @@ local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS
|
|||||||
trash = true,
|
trash = true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
experimental = {
|
experimental = {},
|
||||||
git = {
|
|
||||||
async = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
log = {
|
log = {
|
||||||
enable = false,
|
enable = false,
|
||||||
truncate = false,
|
truncate = false,
|
||||||
@@ -683,7 +679,6 @@ function M.setup(conf)
|
|||||||
require("nvim-tree.diagnostics").setup(opts)
|
require("nvim-tree.diagnostics").setup(opts)
|
||||||
require("nvim-tree.explorer").setup(opts)
|
require("nvim-tree.explorer").setup(opts)
|
||||||
require("nvim-tree.git").setup(opts)
|
require("nvim-tree.git").setup(opts)
|
||||||
require("nvim-tree.git.runner").setup(opts)
|
|
||||||
require("nvim-tree.view").setup(opts)
|
require("nvim-tree.view").setup(opts)
|
||||||
require("nvim-tree.lib").setup(opts)
|
require("nvim-tree.lib").setup(opts)
|
||||||
require("nvim-tree.renderer").setup(opts)
|
require("nvim-tree.renderer").setup(opts)
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ function Runner.run(opts, callback)
|
|||||||
rc = nil, -- -1 indicates timeout
|
rc = nil, -- -1 indicates timeout
|
||||||
}, Runner)
|
}, Runner)
|
||||||
|
|
||||||
local async = callback ~= nil and self.config.git_async
|
local async = callback ~= nil
|
||||||
local profile = log.profile_start("git %s job %s %s", async and "async" or "sync", opts.project_root, opts.path)
|
local profile = log.profile_start("git %s job %s %s", async and "async" or "sync", opts.project_root, opts.path)
|
||||||
|
|
||||||
if async and callback then
|
if async and callback then
|
||||||
@@ -214,9 +214,4 @@ function Runner.run(opts, callback)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function Runner.setup(opts)
|
|
||||||
Runner.config = {}
|
|
||||||
Runner.config.git_async = opts.experimental.git.async
|
|
||||||
end
|
|
||||||
|
|
||||||
return Runner
|
return Runner
|
||||||
|
|||||||
Reference in New Issue
Block a user