mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
fix(picker.select): allow main to be current. Fixes #497
This commit is contained in:
parent
246b904f32
commit
076259d263
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue