Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
181bbe8
feat: add .zig-cache in default ignored_dirs
Uanela Feb 11, 2026
9b0c6a6
feat: correctly add .zig-cache in default ignored_dirs
Uanela Feb 11, 2026
56fa77f
fix(#3178): handle windows paths in ignore_dirs
Uanela Feb 11, 2026
dc30754
fix: remove unsed print statement
Uanela Feb 11, 2026
7ac15cc
fix: tab formatting
Uanela Feb 11, 2026
71b699e
chore: match with documentation
Uanela Feb 11, 2026
876b734
Merge branch 'master' into fix/windows-path-resolution
Uanela Feb 12, 2026
ff41e83
Merge branch 'master' into fix/windows-path-resolution
Uanela Feb 15, 2026
723eecf
chore: double espace backslashes and revert unrelated formatting
Uanela Feb 15, 2026
a20e7c6
merge branch master
Uanela Feb 15, 2026
e1083b8
chore: correctly rever unrelated formatting
Uanela Feb 15, 2026
a0d0b3b
Merge branch 'master' into fix/windows-path-resolution
Uanela Feb 17, 2026
1cc4556
chore: indenting explorer/watch
Uanela Feb 17, 2026
5c37a31
Merge branch 'fix/windows-path-resolution' of https://github.com/nvim…
Uanela Feb 17, 2026
b75ec4d
fix: remove unneeded print
Uanela Feb 17, 2026
bd286e1
Merge branch 'master' into fix/windows-path-resolution
Uanela Feb 18, 2026
55ffc05
chore: remove unneeded true check
Uanela Feb 18, 2026
39e0aa2
Merge branch 'fix/windows-path-resolution' of https://github.com/nvim…
Uanela Feb 18, 2026
91020c1
chore: adding .zig-cache into nvim-tree.lua
Uanela Feb 18, 2026
1b97cb8
chore: add /.zig-cache under filesystem_watchers
Uanela Feb 19, 2026
6f3e948
chore: regenerate docs
Uanela Feb 20, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion doc/nvim-tree-lua.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1707,7 +1707,7 @@ Config: filesystem_watchers *nvim-tree-config-filesystem-watchers*
• {enable}? (`boolean`) (default: `true`)
• {debounce_delay}? (`integer`, default: `50`) Idle milliseconds
between filesystem change and tree update.
• {ignore_dirs}? (`string[]|(fun(path: string): boolean)`, default: `{ "/.ccls-cache", "/build", "/node_modules", "/target", }`)
• {ignore_dirs}? (`string[]|(fun(path: string): boolean)`, default: `{ "/.ccls-cache", "/build", "/node_modules", "/target", "/.zig-cache"}`)
Disable for specific directories.
• {max_events}? (`integer`, default: `1000`) Disable for a single
directory after {max_events} consecutive events
Expand Down Expand Up @@ -2188,6 +2188,7 @@ Following is the default configuration, see |nvim_tree.config| for details. >lua
"/build",
"/node_modules",
"/target",
"/.zig-cache",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not present in nvim-tree.lua DEFAULT_OPTS

Please add it and re-generate the help: https://github.com/nvim-tree/nvim-tree.lua/blob/master/CONTRIBUTING.md#help-documentation

},
},
actions = {
Expand Down
1 change: 1 addition & 0 deletions lua/nvim-tree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ local DEFAULT_OPTS = { -- default-config-start
"/build",
"/node_modules",
"/target",
"/.zig-cache",
},
},
actions = {
Expand Down
2 changes: 1 addition & 1 deletion lua/nvim-tree/_meta/config/filesystem_watchers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ error("Cannot require a meta file")
---@field debounce_delay? integer
---
---Disable for specific directories.
---(default: `{ "/.ccls-cache", "/build", "/node_modules", "/target", }`)
---(default: `{ "/.ccls-cache", "/build", "/node_modules", "/target", "/.zig-cache"}`)
---@field ignore_dirs? string[]|(fun(path: string): boolean)
---
---Disable for a single directory after {max_events} consecutive events with an interval < {debounce_delay}.
Expand Down
4 changes: 4 additions & 0 deletions lua/nvim-tree/explorer/watch.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ local function is_folder_ignored(path)

if type(M.config.filesystem_watchers.ignore_dirs) == "table" then
for _, ignore_dir in ipairs(M.config.filesystem_watchers.ignore_dirs) do
if utils.is_windows then
ignore_dir = ignore_dir:gsub("/", "\\\\") or ignore_dir
end

if vim.fn.match(path, ignore_dir) ~= -1 then
return true
end
Expand Down
Loading