mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
fix(picker): fix condition on when to use the pickers source
This commit is contained in:
parent
5f7e20b21b
commit
6d5e5830a3
1 changed files with 2 additions and 1 deletions
|
@ -63,7 +63,8 @@ function M.pick(source, opts)
|
|||
end
|
||||
opts = opts or {}
|
||||
opts.source = source or opts.source
|
||||
if not opts.source then
|
||||
-- Show pickers if no source, items or finder is provided
|
||||
if not (opts.source or opts.items or opts.finder) then
|
||||
opts.source = "pickers"
|
||||
return M.pick(opts)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue