Skip to content

Commit 0f4d2d6

Browse files
authored
fix: increase filesystem_watchers.max_events from 100 to 1000 (#3263)
* fix: increase filesystem_watchers.max_events from 100 to 1000 * fix: increase filesystem_watchers.max_events from 100 to 1000 * fix: increase filesystem_watchers.max_events from 100 to 1000
1 parent 118057e commit 0f4d2d6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

doc/nvim-tree-lua.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1709,7 +1709,7 @@ Config: filesystem_watchers *nvim-tree-config-filesystem-watchers*
17091709
between filesystem change and tree update.
17101710
• {ignore_dirs}? (`string[]|(fun(path: string): boolean)`, default: `{ "/.ccls-cache", "/build", "/node_modules", "/target", }`)
17111711
Disable for specific directories.
1712-
• {max_events}? (`integer`, default: `100`) Disable for a single
1712+
• {max_events}? (`integer`, default: `1000`) Disable for a single
17131713
directory after {max_events} consecutive events
17141714
with an interval < {debounce_delay}.
17151715

@@ -2182,7 +2182,7 @@ Following is the default configuration, see |nvim_tree.config| for details. >lua
21822182
filesystem_watchers = {
21832183
enable = true,
21842184
debounce_delay = 50,
2185-
max_events = 100,
2185+
max_events = 1000,
21862186
ignore_dirs = {
21872187
"/.ccls-cache",
21882188
"/build",

lua/nvim-tree.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ local DEFAULT_OPTS = { -- default-config-start
463463
filesystem_watchers = {
464464
enable = true,
465465
debounce_delay = 50,
466-
max_events = 100,
466+
max_events = 1000,
467467
ignore_dirs = {
468468
"/.ccls-cache",
469469
"/build",

lua/nvim-tree/_meta/config/filesystem_watchers.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ error("Cannot require a meta file")
3131
---@field ignore_dirs? string[]|(fun(path: string): boolean)
3232
---
3333
---Disable for a single directory after {max_events} consecutive events with an interval < {debounce_delay}.
34-
---(default: `100`)
34+
---(default: `1000`)
3535
---@field max_events? integer

0 commit comments

Comments
 (0)