fix(picker): starting a picker from the picker sometimes didnt start in insert mode. Fixes #718

This commit is contained in:
Folke Lemaitre 2025-01-23 19:36:49 +01:00
parent 7dcf9ffed4
commit 08d4f14cd8
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -508,7 +508,9 @@ M.pickers = {
confirm = function(picker, item)
picker:close()
if item then
Snacks.picker(item.text)
vim.schedule(function()
Snacks.picker(item.text)
end)
end
end,
}