File tree 2 files changed +5
-4
lines changed
lua/neo-tree/sources/filesystem
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 95
95
96
96
--- Toggles whether hidden files are shown or not.
97
97
M .toggle_hidden = function (state )
98
- state .show_hidden = not state .show_hidden
98
+ state .filters . show_hidden = not state . filters .show_hidden
99
99
fs .show ()
100
100
end
101
101
102
102
--- Toggles whether the tree is filtered by gitignore or not.
103
103
M .toggle_gitignore = function (state )
104
- state .respect_gitignore = not state .respect_gitignore
104
+ state .filters . respect_gitignore = not state . filters .respect_gitignore
105
105
fs .show ()
106
106
end
107
107
Original file line number Diff line number Diff line change @@ -16,10 +16,11 @@ local function do_scan(context, path_to_scan)
16
16
local state = context .state
17
17
local paths_to_load = context .paths_to_load
18
18
local folders = context .folders
19
+ local filters = state .filters
19
20
20
21
scan .scan_dir_async (path_to_scan , {
21
- hidden = state .show_hidden or false ,
22
- respect_gitignore = state .respect_gitignore or false ,
22
+ hidden = filters .show_hidden or false ,
23
+ respect_gitignore = filters .respect_gitignore or false ,
23
24
search_pattern = state .search_pattern or nil ,
24
25
add_dirs = true ,
25
26
depth = 1 ,
You can’t perform that action at this time.
0 commit comments