mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
feat(picker): when resuming a source that has nothing to resume, start a picker with the source instead
This commit is contained in:
parent
b39a1898db
commit
db3c13c28e
1 changed files with 3 additions and 0 deletions
|
|
@ -69,6 +69,9 @@ function M.resume(opts)
|
|||
local last = states[1]
|
||||
|
||||
if not last then
|
||||
if opts.source then
|
||||
return Snacks.picker.pick(opts.source)
|
||||
end
|
||||
Snacks.notify.error("No picker to resume")
|
||||
Snacks.picker.pickers()
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue