feat(picker): reworked toggles (flags). they're now configurable. Closes #770

This commit is contained in:
Folke Lemaitre 2025-01-30 14:51:10 +01:00
parent 847509e12c
commit e16a6a4413
7 changed files with 53 additions and 37 deletions

View file

@ -16,6 +16,7 @@ M.autocmds = {
---@field unloaded? boolean show loaded buffers
---@field current? boolean show current buffer
---@field nofile? boolean show `buftype=nofile` buffers
---@field modified? boolean show only modified buffers
---@field sort_lastused? boolean sort by last used
---@field filter? snacks.picker.filter.Config
M.buffers = {
@ -232,6 +233,7 @@ M.git_diff = {
---@field rtp? boolean search in runtimepath
M.grep = {
finder = "grep",
regex = true,
format = "file",
live = true, -- live grep by default
supports_live = true,