Skip to content

Commit 4c026f1

Browse files
committed
feat(#2938): filesystem_watchers.ignore_dirs defaults to { node_modules } to resolve pathalogical issues
1 parent c9104a5 commit 4c026f1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: doc/nvim-tree-lua.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ Following is the default configuration. See |nvim-tree-opts| for details.
561561
filesystem_watchers = {
562562
enable = true,
563563
debounce_delay = 50,
564-
ignore_dirs = {},
564+
ignore_dirs = { "node_modules" },
565565
},
566566
actions = {
567567
use_system_clipboard = true,
@@ -1416,7 +1416,7 @@ function returning whether a path should be ignored.
14161416
Strings must be backslash escaped e.g. `"my-proj/\\.build$"`. See |string-match|.
14171417
Function is passed an absolute path.
14181418
Useful when path is not in `.gitignore` or git integration is disabled.
1419-
Type: `string[] | fun(path: string): boolean`, Default: `{}`
1419+
Type: `string[] | fun(path: string): boolean`, Default: `{ "node_modules" }`
14201420

14211421
==============================================================================
14221422
5.13 OPTS: ACTIONS *nvim-tree-opts-actions*

Diff for: lua/nvim-tree.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS
551551
filesystem_watchers = {
552552
enable = true,
553553
debounce_delay = 50,
554-
ignore_dirs = {},
554+
ignore_dirs = { "node_modules" },
555555
},
556556
actions = {
557557
use_system_clipboard = true,

0 commit comments

Comments
 (0)