mirror of
https://github.com/folke/persistence.nvim.git
synced 2025-08-03 17:45:47 +02:00
feat!: opts.need specifieds how many buffers should be open for saving. Replaces save_empty. Closes #19
This commit is contained in:
parent
f0ac0e981e
commit
7bb575517c
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue