feat!: save sessions in state instead of config

This commit is contained in:
Folke Lemaitre 2023-01-04 13:52:49 +01:00
parent 5da6ddd077
commit c304745096
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040

View File

@ -2,7 +2,7 @@ local M = {}
---@class PersistenceOptions ---@class PersistenceOptions
local defaults = { local defaults = {
dir = vim.fn.expand(vim.fn.stdpath("config") .. "/sessions/"), -- directory where session files are saved dir = vim.fn.expand(vim.fn.stdpath("state") .. "/sessions/"), -- directory where session files are saved
options = { "buffers", "curdir", "tabpages", "winsize" }, -- sessionoptions used for saving options = { "buffers", "curdir", "tabpages", "winsize" }, -- sessionoptions used for saving
} }