mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
feat(picker): reworked toggles (flags). they're now configurable. Closes #770
This commit is contained in:
parent
847509e12c
commit
e16a6a4413
7 changed files with 53 additions and 37 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue