Replies: 1 comment 2 replies
-
coroutine.wrap(function()
local co = coroutine.running()
require('fzf-lua').fzf_exec({ 'a', 'b' }, {
actions = {
default = function(selected, _) coroutine.resume(co, selected[1]) end,
},
})
local ret = coroutine.yield()
vim.notify(string.format('ret is %s', ret or 'nil'))
end)() |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to pick a path using
fzf_exec
from source and continue operations, but it does not block the thread.Beta Was this translation helpful? Give feedback.
All reactions