From 890621b5f29ac618385cc09b3ca80f298736afff Mon Sep 17 00:00:00 2001 From: Alexander Courtis Date: Sat, 22 Apr 2023 13:20:40 +1000 Subject: [PATCH] feat(#1974): enable experimental.git.async by default, see https://github.com/nvim-tree/nvim-tree.lua/issues/2104 --- doc/nvim-tree-lua.txt | 5 +++-- lua/nvim-tree.lua | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/nvim-tree-lua.txt b/doc/nvim-tree-lua.txt index e44a5446ab8..7c29ef58c0c 100644 --- a/doc/nvim-tree-lua.txt +++ b/doc/nvim-tree-lua.txt @@ -436,7 +436,7 @@ applying configuration. }, experimental = { git = { - async = false, + async = true, }, }, log = { @@ -1206,13 +1206,14 @@ General UI configuration. *nvim-tree.experimental* 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: `false` + Type: `boolean`, Default: `true` *nvim-tree.log* Configuration for diagnostic logging. diff --git a/lua/nvim-tree.lua b/lua/nvim-tree.lua index d97f3c71d1d..26e40a3e439 100644 --- a/lua/nvim-tree.lua +++ b/lua/nvim-tree.lua @@ -561,7 +561,7 @@ local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS }, experimental = { git = { - async = false, + async = true, }, }, log = {