Skip to content

Commit 826f717

Browse files
committed
feat(#2938): more filesystem_watchers.ignore_dirs defaults to to resolve pathalogical issues
1 parent 71010c7 commit 826f717

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

doc/nvim-tree-lua.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,8 +1416,14 @@ 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: `{ "node_modules" }`
1420-
1419+
Type: `string[] | fun(path: string): boolean`, Default: >
1420+
{
1421+
"/.ccls-cache",
1422+
"/build",
1423+
"/node_modules",
1424+
"/target",
1425+
}
1426+
<
14211427
==============================================================================
14221428
5.13 OPTS: ACTIONS *nvim-tree-opts-actions*
14231429

lua/nvim-tree.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,12 @@ local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS
551551
filesystem_watchers = {
552552
enable = true,
553553
debounce_delay = 50,
554-
ignore_dirs = { "node_modules" },
554+
ignore_dirs = {
555+
"/.ccls-cache",
556+
"/build",
557+
"/node_modules",
558+
"/target",
559+
},
555560
},
556561
actions = {
557562
use_system_clipboard = true,

0 commit comments

Comments
 (0)