From c87b76f6ef1ad13ed992080c6482f6cead5457d7 Mon Sep 17 00:00:00 2001 From: delphinus Date: Mon, 7 Aug 2023 10:25:04 +0900 Subject: [PATCH] chore: add more delay not to lock Neovim --- lua/frecency/async_finder.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/frecency/async_finder.lua b/lua/frecency/async_finder.lua index b031a75..0e42624 100644 --- a/lua/frecency/async_finder.lua +++ b/lua/frecency/async_finder.lua @@ -55,7 +55,7 @@ AsyncFinder.new = function(fs, path, entry_maker, initial_results) tx.send(entry) if count % 1000 == 0 then -- NOTE: This is needed not to lock text input. - async.util.sleep(0) + async.util.sleep(50) end end end