Skip to content

Commit 8c6c1f0

Browse files
committed
feat: reduce debounce delays
1 parent 936fb13 commit 8c6c1f0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lua/neo-tree/sources/filesystem/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ M.navigate = function(state, path, path_to_reveal, callback)
168168
log.trace("navigate", path, path_to_reveal)
169169
utils.debounce("filesystem_navigate", function()
170170
M._navigate_internal(state, path, path_to_reveal, callback)
171-
end, utils.debounce_strategy.CALL_FIRST_AND_LAST, 500)
171+
end, utils.debounce_strategy.CALL_FIRST_AND_LAST, 100)
172172
end
173173

174174
M.reset_search = function(state, refresh, open_current_node)

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ M.show_filter = function(state, search_as_you_type, fuzzy_finder_mode)
113113
local len = #value
114114
local delay = 500
115115

116-
if len > 5 then
116+
if len > 3 then
117117
delay = 100
118-
elseif len > 3 then
119-
delay = 200
120118
elseif len > 2 then
119+
delay = 200
120+
elseif len > 1 then
121121
delay = 400
122122
end
123123
utils.debounce(

0 commit comments

Comments
 (0)