diff --git a/doc/nvim-tree-lua.txt b/doc/nvim-tree-lua.txt index 152602ddae8..00436d369c1 100644 --- a/doc/nvim-tree-lua.txt +++ b/doc/nvim-tree-lua.txt @@ -502,9 +502,6 @@ applying configuration. }, }, experimental = { - git = { - async = true, - }, }, log = { enable = false, @@ -1275,13 +1272,6 @@ General UI configuration. Experimental features that may become default or optional functionality. 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* Configuration for diagnostic logging. diff --git a/lua/nvim-tree.lua b/lua/nvim-tree.lua index eac1ff08fdc..ff88d5a09c6 100644 --- a/lua/nvim-tree.lua +++ b/lua/nvim-tree.lua @@ -559,11 +559,7 @@ local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS trash = true, }, }, - experimental = { - git = { - async = true, - }, - }, + experimental = {}, log = { enable = false, truncate = false, @@ -683,7 +679,6 @@ function M.setup(conf) require("nvim-tree.diagnostics").setup(opts) require("nvim-tree.explorer").setup(opts) require("nvim-tree.git").setup(opts) - require("nvim-tree.git.runner").setup(opts) require("nvim-tree.view").setup(opts) require("nvim-tree.lib").setup(opts) require("nvim-tree.renderer").setup(opts) diff --git a/lua/nvim-tree/git/runner.lua b/lua/nvim-tree/git/runner.lua index 9649fa272cf..6b200b6dba4 100644 --- a/lua/nvim-tree/git/runner.lua +++ b/lua/nvim-tree/git/runner.lua @@ -185,7 +185,7 @@ function Runner.run(opts, callback) rc = nil, -- -1 indicates timeout }, 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) if async and callback then @@ -214,9 +214,4 @@ function Runner.run(opts, callback) end end -function Runner.setup(opts) - Runner.config = {} - Runner.config.git_async = opts.experimental.git.async -end - return Runner