-
Notifications
You must be signed in to change notification settings - Fork 508
Replies: 1 comment · 2 replies
|
There's no guide or documentation for creating new pickers. If you can't find something in the docs/picker.md, you'll most likely need to look at the source code. I'd recommend looking at how others trying to implement their pickers. You can find a few additional examples here: Sources (entry point): snacks.nvim/lua/snacks/picker/config/sources.lua Lines 1 to 1093 in 882c996
Finders: https://github.com/folke/snacks.nvim/tree/main/lua/snacks/picker/source for example snacks.nvim/lua/snacks/picker/source/vim.lua Lines 1 to 516 in 882c996
Formatters: snacks.nvim/lua/snacks/picker/format.lua Lines 1 to 741 in 882c996
Previewers: snacks.nvim/lua/snacks/picker/preview.lua Lines 1 to 379 in 882c996
|
All reactions
|
Just point your ai assistant at the source of snacks and let it find out the details required for your individual requirement 😀 |
All reactions
-
👍 1
|
much appreciated @drowning-cat , it helped and I got it to work. |
All reactions
-
🎉 1
Uh oh!
There was an error while loading. Please reload this page.
Hi,
in the readme of the pickers it says "Simple API to create your own pickers". From some of the examples I could find it looks like it could be simple. But I'm having a hard time finding any documentation. Do you know if there is any?
For some of the types like
snacks.picker.formatI cannot find the type definition, plus for things likesnacks.picker.Itemlooking at some of the built-infinders, they don't seem to really follow that type./cheers
All reactions