File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ local api = vim.api
2
2
local uv = vim .loop
3
3
local utils = require " nvim-tree.utils"
4
4
local core = require " nvim-tree.core"
5
+ local filters = require " nvim-tree.explorer.filters"
5
6
local find_file = require (" nvim-tree.actions.find-file" ).fn
6
7
7
8
local M = {}
@@ -27,15 +28,17 @@ local function search(dir, input_path)
27
28
break
28
29
end
29
30
30
- if string.find (path , " /" .. input_path .. " $" ) then
31
- return path
32
- end
33
-
34
- if stat .type == " directory" then
35
- path = search (path , input_path )
36
- if path then
31
+ if not filters .should_ignore (path ) then
32
+ if string.find (path , " /" .. input_path .. " $" ) then
37
33
return path
38
34
end
35
+
36
+ if stat .type == " directory" then
37
+ path = search (path , input_path )
38
+ if path then
39
+ return path
40
+ end
41
+ end
39
42
end
40
43
41
44
name , _ = uv .fs_scandir_next (handle )
You can’t perform that action at this time.
0 commit comments