Skip to content

Commit db3c13c

Browse files
committed
feat(picker): when resuming a source that has nothing to resume, start a picker with the source instead
1 parent b39a189 commit db3c13c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lua/snacks/picker/resume.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ function M.resume(opts)
6969
local last = states[1]
7070

7171
if not last then
72+
if opts.source then
73+
return Snacks.picker.pick(opts.source)
74+
end
7275
Snacks.notify.error("No picker to resume")
7376
Snacks.picker.pickers()
7477
return

0 commit comments

Comments
 (0)