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

@ -21,6 +21,7 @@ function M.buffers(opts, ctx)
and (opts.unloaded or vim.api.nvim_buf_is_loaded(buf))
and (opts.current or buf ~= current_buf)
and (opts.nofile or vim.bo[buf].buftype ~= "nofile")
and (not opts.modified or vim.bo[buf].modified)
if keep then
local name = vim.api.nvim_buf_get_name(buf)
if name == "" then