Skip to content

Commit aeb6195

Browse files
committed
fix: lazily call fuzzy access
1 parent 873790e commit aeb6195

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/blink/cmp/accept/init.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ local function accept(item)
6464
end
6565

6666
-- Notify the rust module that the item was accessed
67-
require('blink.cmp.fuzzy').access(item)
67+
-- TODO: why is this so slow? (10ms)
68+
vim.schedule(function() require('blink.cmp.fuzzy').access(item) end)
6869
end)
6970
:catch(function(err) vim.notify(err, vim.log.levels.ERROR) end)
7071
end

0 commit comments

Comments
 (0)