Skip to content

Commit 0be1e0c

Browse files
committed
chore(#1606): always use file system watchers
1 parent b7763a0 commit 0be1e0c

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

doc/nvim-tree-lua.txt

-5
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ nvim-tree will be initialised with default configuration.
165165
Subsequent calls to setup will replace the previous configuration.
166166
>
167167
require("nvim-tree").setup { -- BEGIN_DEFAULT_OPTS
168-
auto_reload_on_write = true,
169168
create_in_closed_folder = false,
170169
disable_netrw = false,
171170
hijack_cursor = false,
@@ -419,10 +418,6 @@ in some scenarios (eg using vim startify).
419418
List of filetypes or buffer names that will prevent |nvim-tree.open_on_tab|.
420419
Type: {string}, Default: `{}`
421420

422-
*nvim-tree.auto_reload_on_write*
423-
Reloads the explorer every time a buffer is written to.
424-
Type: `boolean`, Default: `true`
425-
426421
*nvim-tree.create_in_closed_folder*
427422
Creating a file when the cursor is on a closed folder will set the
428423
path to be inside the closed folder, otherwise the parent folder.

lua/nvim-tree.lua

-1
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,6 @@ local function setup_autocommands(opts)
406406
end
407407

408408
local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS
409-
auto_reload_on_write = true,
410409
create_in_closed_folder = false,
411410
disable_netrw = false,
412411
hijack_cursor = false,

lua/nvim-tree/legacy.lua

+1
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ local function unnecessary(opts)
295295
if opts.filesystem_watchers then
296296
opts.filesystem_watchers.enable = nil
297297
end
298+
opts.auto_reload_on_write = nil
298299
end
299300

300301
local function removed(opts)

0 commit comments

Comments
 (0)