fix(resurrect): fix breaking changes in resurrect plugin

This commit is contained in:
2025-03-19 21:02:29 -04:00
parent 1ce60ecccd
commit 8ca5baabcd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ local function file_exists(file)
end
if file_exists(key) then
RESURRECT.set_encryption({
RESURRECT.state_manager.set_encryption({
enable = true,
method = "age", -- "age" is the default encryption method, but you can also specify "rage" or "gpg"
private_key = key, -- if using "gpg", you can omit this
+1 -1
View File
@@ -8,7 +8,7 @@ local M = {}
RESURRECT = WEZTERM.plugin.require("https://github.com/MLFlexer/resurrect.wezterm")
-- Set the periodic save interval
RESURRECT.periodic_save({ interval_seconds = 60, save_workspaces = true, save_windows = true })
RESURRECT.state_manager.periodic_save({ interval_seconds = 60, save_workspaces = true, save_windows = true })
-- load the state whenever I create a new workspace
WEZTERM.on("smart_workspace_switcher.workspace_switcher.created", function(window, _, label)