fix(picker.select): allow main to be current. Fixes #497

This commit is contained in:
Folke Lemaitre 2025-01-15 17:35:43 +01:00
parent 246b904f32
commit 076259d263
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -34,6 +34,7 @@ function M.select(items, opts, on_choice)
return Snacks.picker.pick({
source = "select",
items = finder_items,
main = { current = true },
format = Snacks.picker.format.ui_select(opts.kind, #items),
actions = {
confirm = function(picker, item)