From 5f30a7bee4ec8daaab98eb8039caf3fe12a3c97f Mon Sep 17 00:00:00 2001 From: kiyan Date: Tue, 26 Jul 2022 10:46:59 +0200 Subject: [PATCH] chore(config): enable filesystem watchers by default --- doc/nvim-tree-lua.txt | 5 ++--- lua/nvim-tree.lua | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/doc/nvim-tree-lua.txt b/doc/nvim-tree-lua.txt index 72c3e731..ca81303c 100644 --- a/doc/nvim-tree-lua.txt +++ b/doc/nvim-tree-lua.txt @@ -278,7 +278,7 @@ Subsequent calls to setup will replace the previous configuration. exclude = {}, }, filesystem_watchers = { - enable = false, + enable = true, debounce_delay = 50, }, git = { @@ -533,11 +533,10 @@ Using this will disable BufEnter / BufWritePost events in nvim-tree which were used to update the whole tree. With this feature, the tree will be updated only for the appropriate folder change, resulting in better performance. -This will be experimental for a few weeks and will become the default. *nvim-tree.filesystem_watchers.enable* Enable / disable the feature. - Type: `boolean`, Default: `false` + Type: `boolean`, Default: `true` *nvim-tree.filesystem_watchers.debounce_delay* Idle milliseconds between filesystem change and action. diff --git a/lua/nvim-tree.lua b/lua/nvim-tree.lua index e67589d1..80ee741d 100644 --- a/lua/nvim-tree.lua +++ b/lua/nvim-tree.lua @@ -538,7 +538,7 @@ local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS exclude = {}, }, filesystem_watchers = { - enable = false, + enable = true, debounce_delay = 50, }, git = {