mirror of
https://github.com/folke/persistence.nvim.git
synced 2025-07-13 19:04:41 +02:00
feat!: removed opts.options
. Use vim.o.sessionoptions
instead.
This commit is contained in:
parent
08af8fee77
commit
eb5622edae
2 changed files with 3 additions and 11 deletions
|
@ -1,17 +1,12 @@
|
|||
local M = {}
|
||||
|
||||
---@class PersistenceOptions
|
||||
---@field pre_save? fun()
|
||||
---@field post_save? fun()
|
||||
---@field pre_load? fun()
|
||||
---@field post_load? fun()
|
||||
---@class Persistence.Config
|
||||
local defaults = {
|
||||
dir = vim.fn.stdpath("state") .. "/sessions/", -- directory where session files are saved
|
||||
options = { "buffers", "curdir", "tabpages", "winsize", "skiprtp" }, -- sessionoptions used for saving
|
||||
save_empty = false, -- don't save if there are no open file buffers
|
||||
}
|
||||
|
||||
---@type PersistenceOptions
|
||||
---@type Persistence.Config
|
||||
M.options = {}
|
||||
|
||||
function M.setup(opts)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue