mirror of
https://github.com/folke/persistence.nvim.git
synced 2025-06-29 04:00:15 +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
|
@ -70,10 +70,7 @@ function M.stop()
|
|||
end
|
||||
|
||||
function M.save()
|
||||
local tmp = vim.o.sessionoptions
|
||||
vim.o.sessionoptions = table.concat(Config.options.options, ",")
|
||||
vim.cmd("mks! " .. e(M.current or M.get_current()))
|
||||
vim.o.sessionoptions = tmp
|
||||
vim.cmd("mks! " .. e(M._current or M.current()))
|
||||
end
|
||||
|
||||
function M.load(opt)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue