Skip to content

Commit 164eb10

Browse files
authored
fix(#2104): remove experimental.git.async, always used (#2234)
1 parent d5d6950 commit 164eb10

File tree

3 files changed

+2
-22
lines changed

3 files changed

+2
-22
lines changed

doc/nvim-tree-lua.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -502,9 +502,6 @@ applying configuration.
502502
},
503503
},
504504
experimental = {
505-
git = {
506-
async = true,
507-
},
508505
},
509506
log = {
510507
enable = false,
@@ -1275,13 +1272,6 @@ General UI configuration.
12751272
Experimental features that may become default or optional functionality.
12761273
In the event of a problem please disable the experiment and raise an issue.
12771274

1278-
*nvim-tree.experimental.git.async*
1279-
Direct file writes and `.git/` writes are executed asynchronously: the
1280-
git process runs in the background. The tree updates on completion.
1281-
Other git actions such as first tree draw and explicit refreshes are still
1282-
done in the foreground.
1283-
Type: `boolean`, Default: `true`
1284-
12851275
*nvim-tree.log*
12861276
Configuration for diagnostic logging.
12871277

lua/nvim-tree.lua

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -559,11 +559,7 @@ local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS
559559
trash = true,
560560
},
561561
},
562-
experimental = {
563-
git = {
564-
async = true,
565-
},
566-
},
562+
experimental = {},
567563
log = {
568564
enable = false,
569565
truncate = false,
@@ -683,7 +679,6 @@ function M.setup(conf)
683679
require("nvim-tree.diagnostics").setup(opts)
684680
require("nvim-tree.explorer").setup(opts)
685681
require("nvim-tree.git").setup(opts)
686-
require("nvim-tree.git.runner").setup(opts)
687682
require("nvim-tree.view").setup(opts)
688683
require("nvim-tree.lib").setup(opts)
689684
require("nvim-tree.renderer").setup(opts)

lua/nvim-tree/git/runner.lua

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ function Runner.run(opts, callback)
185185
rc = nil, -- -1 indicates timeout
186186
}, Runner)
187187

188-
local async = callback ~= nil and self.config.git_async
188+
local async = callback ~= nil
189189
local profile = log.profile_start("git %s job %s %s", async and "async" or "sync", opts.project_root, opts.path)
190190

191191
if async and callback then
@@ -214,9 +214,4 @@ function Runner.run(opts, callback)
214214
end
215215
end
216216

217-
function Runner.setup(opts)
218-
Runner.config = {}
219-
Runner.config.git_async = opts.experimental.git.async
220-
end
221-
222217
return Runner

0 commit comments

Comments
 (0)