fix: remove expand() as stdpath() expands itself (#50)
This commit is contained in:
parent
5fe077056c
commit
a2fd3d9965
@ -34,7 +34,7 @@ Persistence comes with the following defaults:
|
||||
|
||||
```lua
|
||||
{
|
||||
dir = vim.fn.expand(vim.fn.stdpath("state") .. "/sessions/"), -- directory where session files are saved
|
||||
dir = vim.fn.stdpath("state") .. "/sessions/", -- directory where session files are saved
|
||||
options = { "buffers", "curdir", "tabpages", "winsize" }, -- sessionoptions used for saving
|
||||
pre_save = nil, -- a function to call before saving the session
|
||||
post_save = nil, -- a function to call after saving the session
|
||||
|
@ -52,7 +52,7 @@ Persistence comes with the following defaults:
|
||||
|
||||
>lua
|
||||
{
|
||||
dir = vim.fn.expand(vim.fn.stdpath("state") .. "/sessions/"), -- directory where session files are saved
|
||||
dir = vim.fn.stdpath("state") .. "/sessions/", -- directory where session files are saved
|
||||
options = { "buffers", "curdir", "tabpages", "winsize" }, -- sessionoptions used for saving
|
||||
pre_save = nil, -- a function to call before saving the session
|
||||
post_save = nil, -- a function to call after saving the session
|
||||
|
@ -6,7 +6,7 @@ local M = {}
|
||||
---@field pre_load? fun()
|
||||
---@field post_load? fun()
|
||||
local defaults = {
|
||||
dir = vim.fn.expand(vim.fn.stdpath("state") .. "/sessions/"), -- directory where session files are saved
|
||||
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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user