From 4c026f13d9d020f4ee91427b88a36aea41826674 Mon Sep 17 00:00:00 2001 From: Alexander Courtis Date: Sat, 5 Oct 2024 11:12:55 +1000 Subject: [PATCH 1/3] feat(#2938): filesystem_watchers.ignore_dirs defaults to { node_modules } to resolve pathalogical issues --- doc/nvim-tree-lua.txt | 4 ++-- lua/nvim-tree.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/nvim-tree-lua.txt b/doc/nvim-tree-lua.txt index fcd11da7742..2981ba0746d 100644 --- a/doc/nvim-tree-lua.txt +++ b/doc/nvim-tree-lua.txt @@ -561,7 +561,7 @@ Following is the default configuration. See |nvim-tree-opts| for details. filesystem_watchers = { enable = true, debounce_delay = 50, - ignore_dirs = {}, + ignore_dirs = { "node_modules" }, }, actions = { use_system_clipboard = true, @@ -1416,7 +1416,7 @@ function returning whether a path should be ignored. Strings must be backslash escaped e.g. `"my-proj/\\.build$"`. See |string-match|. Function is passed an absolute path. 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: `{ "node_modules" }` ============================================================================== 5.13 OPTS: ACTIONS *nvim-tree-opts-actions* diff --git a/lua/nvim-tree.lua b/lua/nvim-tree.lua index 4bca0dce450..f21e275e93f 100644 --- a/lua/nvim-tree.lua +++ b/lua/nvim-tree.lua @@ -551,7 +551,7 @@ local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS filesystem_watchers = { enable = true, debounce_delay = 50, - ignore_dirs = {}, + ignore_dirs = { "node_modules" }, }, actions = { use_system_clipboard = true, From 826f717922b9a02398c7dac42e45468534933b9a Mon Sep 17 00:00:00 2001 From: Alexander Courtis Date: Mon, 7 Oct 2024 15:19:11 +1100 Subject: [PATCH 2/3] feat(#2938): more filesystem_watchers.ignore_dirs defaults to to resolve pathalogical issues --- doc/nvim-tree-lua.txt | 10 ++++++++-- lua/nvim-tree.lua | 7 ++++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/doc/nvim-tree-lua.txt b/doc/nvim-tree-lua.txt index 2981ba0746d..92a19ec34f0 100644 --- a/doc/nvim-tree-lua.txt +++ b/doc/nvim-tree-lua.txt @@ -1416,8 +1416,14 @@ function returning whether a path should be ignored. Strings must be backslash escaped e.g. `"my-proj/\\.build$"`. See |string-match|. Function is passed an absolute path. Useful when path is not in `.gitignore` or git integration is disabled. - Type: `string[] | fun(path: string): boolean`, Default: `{ "node_modules" }` - + Type: `string[] | fun(path: string): boolean`, Default: > + { + "/.ccls-cache", + "/build", + "/node_modules", + "/target", + } +< ============================================================================== 5.13 OPTS: ACTIONS *nvim-tree-opts-actions* diff --git a/lua/nvim-tree.lua b/lua/nvim-tree.lua index 48de1147786..16f2fa33ac3 100644 --- a/lua/nvim-tree.lua +++ b/lua/nvim-tree.lua @@ -551,7 +551,12 @@ local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS filesystem_watchers = { enable = true, debounce_delay = 50, - ignore_dirs = { "node_modules" }, + ignore_dirs = { + "/.ccls-cache", + "/build", + "/node_modules", + "/target", + }, }, actions = { use_system_clipboard = true, From 3361160afc4cfad5e385445e605861821b306869 Mon Sep 17 00:00:00 2001 From: Alexander Courtis Date: Mon, 7 Oct 2024 15:21:09 +1100 Subject: [PATCH 3/3] feat(#2938): more filesystem_watchers.ignore_dirs defaults to to resolve pathalogical issues --- doc/nvim-tree-lua.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/nvim-tree-lua.txt b/doc/nvim-tree-lua.txt index 92a19ec34f0..3e2f56170ae 100644 --- a/doc/nvim-tree-lua.txt +++ b/doc/nvim-tree-lua.txt @@ -561,7 +561,12 @@ Following is the default configuration. See |nvim-tree-opts| for details. filesystem_watchers = { enable = true, debounce_delay = 50, - ignore_dirs = { "node_modules" }, + ignore_dirs = { + "/.ccls-cache", + "/build", + "/node_modules", + "/target", + }, }, actions = { use_system_clipboard = true,