diff --git a/encryption.lua b/encryption.lua index af663cd..0780efd 100644 --- a/encryption.lua +++ b/encryption.lua @@ -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 diff --git a/plugins/resurrect.lua b/plugins/resurrect.lua index d98996b..6bf50fa 100644 --- a/plugins/resurrect.lua +++ b/plugins/resurrect.lua @@ -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)