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
This commit is contained in:
Alexander Courtis 2024-10-07 15:25:24 +11:00 committed by GitHub
parent 38aac09151
commit 010ae0365a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 20 additions and 4 deletions

View File

@ -561,7 +561,12 @@ Following is the default configuration. See |nvim-tree-opts| for details.
filesystem_watchers = { filesystem_watchers = {
enable = true, enable = true,
debounce_delay = 50, debounce_delay = 50,
ignore_dirs = {}, ignore_dirs = {
"/.ccls-cache",
"/build",
"/node_modules",
"/target",
},
}, },
actions = { actions = {
use_system_clipboard = true, use_system_clipboard = true,
@ -1416,8 +1421,14 @@ function returning whether a path should be ignored.
Strings must be backslash escaped e.g. `"my-proj/\\.build$"`. See |string-match|. Strings must be backslash escaped e.g. `"my-proj/\\.build$"`. See |string-match|.
Function is passed an absolute path. Function is passed an absolute path.
Useful when path is not in `.gitignore` or git integration is disabled. Useful when path is not in `.gitignore` or git integration is disabled.
Type: `string[] | fun(path: string): boolean`, Default: `{}` Type: `string[] | fun(path: string): boolean`, Default: >
{
"/.ccls-cache",
"/build",
"/node_modules",
"/target",
}
<
============================================================================== ==============================================================================
5.13 OPTS: ACTIONS *nvim-tree-opts-actions* 5.13 OPTS: ACTIONS *nvim-tree-opts-actions*

View File

@ -551,7 +551,12 @@ local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS
filesystem_watchers = { filesystem_watchers = {
enable = true, enable = true,
debounce_delay = 50, debounce_delay = 50,
ignore_dirs = {}, ignore_dirs = {
"/.ccls-cache",
"/build",
"/node_modules",
"/target",
},
}, },
actions = { actions = {
use_system_clipboard = true, use_system_clipboard = true,