fix(picker): fix condition on when to use the pickers source

This commit is contained in:
Folke Lemaitre 2025-01-14 19:43:25 +01:00
parent 5f7e20b21b
commit 6d5e5830a3
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -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