Skip to content

Commit 010ae03

Browse files
authored
feat(#2938): add default filesystem_watchers.ignore_dirs = { "/.ccls-cache", "/build", "/node_modules", "/target", } (#2940)
* feat(#2938): filesystem_watchers.ignore_dirs defaults to { node_modules } to resolve pathalogical issues * feat(#2938): more filesystem_watchers.ignore_dirs defaults to to resolve pathalogical issues * feat(#2938): more filesystem_watchers.ignore_dirs defaults to to resolve pathalogical issues
1 parent 38aac09 commit 010ae03

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

doc/nvim-tree-lua.txt

+14-3
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,12 @@ 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 = {
565+
"/.ccls-cache",
566+
"/build",
567+
"/node_modules",
568+
"/target",
569+
},
565570
},
566571
actions = {
567572
use_system_clipboard = true,
@@ -1416,8 +1421,14 @@ function returning whether a path should be ignored.
14161421
Strings must be backslash escaped e.g. `"my-proj/\\.build$"`. See |string-match|.
14171422
Function is passed an absolute path.
14181423
Useful when path is not in `.gitignore` or git integration is disabled.
1419-
Type: `string[] | fun(path: string): boolean`, Default: `{}`
1420-
1424+
Type: `string[] | fun(path: string): boolean`, Default: >
1425+
{
1426+
"/.ccls-cache",
1427+
"/build",
1428+
"/node_modules",
1429+
"/target",
1430+
}
1431+
<
14211432
==============================================================================
14221433
5.13 OPTS: ACTIONS *nvim-tree-opts-actions*
14231434

lua/nvim-tree.lua

+6-1
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 = {},
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)