feat: allow passing opts to picker.show to customize Snacks.picker #12

Merged
fjchen7 merged 2 commits from main into main 2026-01-21 14:51:40 -06:00
fjchen7 commented 2026-01-20 09:05:36 -06:00 (Migrated from github.com)
No description provided.
noe.trevino left a comment

Just some lua annotations that we need to add in

Just some lua annotations that we need to add in
@ -169,7 +169,8 @@ end
--- -- Show the picker
Owner

Switch to this type casting:

---@class snacks.picker.Config

So both us, and the user, get nice LSP completions when configuring.

Switch to this type casting: ``` lua ---@class snacks.picker.Config ``` So both us, and the user, get nice LSP completions when configuring.
Owner

Cast this to:

---@class snacks.picker.Config

as well.

Cast this to: ``` ---@class snacks.picker.Config ``` as well.
@ -174,0 +196,4 @@
if config.win.input.keys["d"] then
assert.are.equal("delete", config.win.input.keys["d"][1])
end
end)
Owner

Nice! Thanks for taking the time to write some tests!

Nice! Thanks for taking the time to write some tests!
Owner

Thanks for the PR! Just one small thing. Do you think you could update the README to show that this is available?
Much appreciated. Great job btw

Thanks for the PR! Just one small thing. Do you think you could update the README to show that this is available? Much appreciated. Great job btw
fjchen7 commented 2026-01-21 06:25:34 -06:00 (Migrated from github.com)

Just update code according to the review. Let me know if there are other issues.

Just update code according to the review. Let me know if there are other issues.
Sign in to join this conversation.
No description provided.