feat(watcher): debounce FS watchers

This commit is contained in:
Alexander Courtis
2022-06-28 11:18:22 +10:00
parent 7a795d78fa
commit e401a4c957
6 changed files with 74 additions and 28 deletions

View File

@@ -273,6 +273,7 @@ Setup may only be run once; subsequent calls will result in a warning.
filesystem_watchers = {
enable = false,
interval = 100,
debounce_delay = 50,
},
git = {
enable = true,
@@ -524,6 +525,10 @@ This will be experimental for a few weeks and will become the default.
https://github.com/luvit/luv/blob/master/docs.md#uvfs_poll_startfs_poll-path-interval-callback
Type: `number`, Default: `100` (ms)
*nvim-tree.filesystem_watchers.debounce_delay*
Idle milliseconds between filesystem change and action.
Type: `number`, Default: `50` (ms)
*nvim-tree.view*
Window / buffer setup.