feat!: opts.need specifieds how many buffers should be open for saving. Replaces save_empty. Closes #19

This commit is contained in:
Folke Lemaitre 2024-07-06 21:41:58 +02:00
parent f0ac0e981e
commit 7bb575517c
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 5 additions and 5 deletions

View file

@ -3,7 +3,9 @@ local M = {}
---@class Persistence.Config
local defaults = {
dir = vim.fn.stdpath("state") .. "/sessions/", -- directory where session files are saved
save_empty = false, -- don't save if there are no open file buffers
-- minimum number of file buffers that need to be open to save
-- Set to 0 to always save
need = 1,
}
---@type Persistence.Config