mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
fix(picker.lsp): use async from ctx
This commit is contained in:
parent
b24886c995
commit
b878caaddc
2 changed files with 3 additions and 28 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue