Skip to content

Commit 0d0f98b

Browse files
authored
fix(ignore): ensure ignore files are files (#1900)
1 parent 4c60a19 commit 0d0f98b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/neo-tree/sources/filesystem/lib/ignored.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ M.mark_ignored = function(state, items)
7272
ignorers[folder] = ignorers[folder] or {}
7373
local folder_ignorers = ignorers[folder]
7474
local applicable_ignore_files =
75-
vim.fs.find(ignore_files, { upward = true, limit = math.huge, path = folder })
75+
vim.fs.find(ignore_files, { upward = true, limit = math.huge, path = folder, type = "file" })
7676

7777
for _, ignore_filepath in ipairs(applicable_ignore_files) do
7878
globs[ignore_filepath] = globs[ignore_filepath] or file_to_glob(ignore_filepath)

0 commit comments

Comments
 (0)