Skip to content

Commit 845069d

Browse files
committed
removed debounce_delay to implement in a later PR
1 parent 2bbccb1 commit 845069d

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

doc/nvim-tree-lua.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,6 @@ Subsequent calls to setup will replace the previous configuration.
332332
enable = false,
333333
show_on_dirs = true,
334334
show_on_open_dirs = false,
335-
debounce_delay = 50,
336335
},
337336
actions = {
338337
use_system_clipboard = true,
@@ -644,12 +643,6 @@ Indicate which file have unsaved modification.
644643
Only relevant when |modified.show_on_dirs| is `true`.
645644
Type: `boolean`, Default: `false`
646645

647-
*nvim-tree.modified.debounce_delay*
648-
Idle milliseconds between the file is modified and action.
649-
This helps performance when large number of files are modified in quick
650-
succession (e.g. lsp rename).
651-
Type: `number`, Default: `50` (ms)
652-
653646
You will still need to set |renderer.icons.show.modified| `= true` or
654647
|renderer.highlight_modified| `= true` to be able to see things in the
655648
tree.

lua/nvim-tree.lua

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -481,10 +481,8 @@ local function setup_autocommands(opts)
481481
if opts.modified.enable then
482482
create_nvim_tree_autocmd({ "BufModifiedSet", "BufWritePost" }, {
483483
callback = function()
484-
utils.debounce("BufModifiedSet:modified_files", opts.modified.debounce_delay, function()
485-
modified.reload()
486-
reloaders.reload_explorer()
487-
end)
484+
modified.reload()
485+
reloaders.reload_explorer()
488486
end,
489487
})
490488
end
@@ -653,7 +651,6 @@ local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS
653651
enable = false,
654652
show_on_dirs = true,
655653
show_on_open_dirs = false,
656-
debounce_delay = 50,
657654
},
658655
actions = {
659656
use_system_clipboard = true,

0 commit comments

Comments
 (0)