potential fix for issue #23?

main
bhagwan 3 years ago
parent 8813d5a5ea
commit 2ed1a56102

@ -89,7 +89,8 @@ local fzf_function = function (cb)
end
-- done, we can't call utils.delayed_cb here
-- because sleep() messes up the coroutine
cb(nil, function() end)
cb(nil, function() coroutine.resume(co) end)
coroutine.yield()
end)()
end

@ -404,7 +404,11 @@ M.diagnostics = function(opts)
-- coroutine.yield()
-- close the pipe to fzf, this
-- removes the loading indicator in fzf
utils.delayed_cb(cb)
-- TODO: why is this causing a bug with
-- 'glepnir/dashboard-nvim'??? (issue #23)
-- utils.delayed_cb(cb)
cb(nil, function() coroutine.resume(co) end)
coroutine.yield()
end)()
end

Loading…
Cancel
Save