feat(picker): added smart picker

This commit is contained in:
Folke Lemaitre 2025-01-16 13:01:05 +01:00
parent 7117356b49
commit 772f3e9b89
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
4 changed files with 246 additions and 0 deletions

View file

@ -518,6 +518,15 @@ M.search_history = {
confirm = "search",
}
---@class snacks.picker.smart.Config: snacks.picker.Config
---@field finders? string[] list of finders to use
---@field filter? snacks.picker.filter.Config
M.smart = {
finder = "smart",
finders = { "buffers", "recent", "files" },
format = "file",
}
-- Open a project from zoxide
M.zoxide = {
finder = "files_zoxide",