fix(picker.lsp): use async from ctx

This commit is contained in:
Folke Lemaitre 2025-01-23 00:13:43 +01:00
parent b24886c995
commit b878caaddc
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 3 additions and 28 deletions

View file

@ -1,3 +1,4 @@
---@diagnostic disable: await-in-sync
local Async = require("snacks.picker.util.async")
---@module 'uv'
@ -336,8 +337,8 @@ function M.symbols(opts, ctx)
vim.defer_fn(function()
vim.api.nvim_del_autocmd(id)
end, 10000)
return function(_, async)
async:sleep(2000)
return function()
ctx.async:sleep(2000)
end
end