Skip to content

Commit 26bec4b

Browse files
authored
fix(sessions): change persisted.nvim load session command (#118)
## Description Firstly, thank you for integrating persisted.nvim in the dashboard out of the box. This PR changes the command to load a persisted.nvim session. This accounts for users potentially not having `SessionLoad` available to them if they lazy load their dashboard and don't have `cmd = { "SessionLoad" }` setup. ## Related Issue(s) N/A ## Screenshots N/A
1 parent 978424c commit 26bec4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/snacks/dashboard.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ M.sections = {}
727727
function M.sections.session(item)
728728
local plugins = {
729729
{ "persistence.nvim", ":lua require('persistence').load()" },
730-
{ "persisted.nvim", ":SessionLoad" },
730+
{ "persisted.nvim", ":lua require('persisted').load()" },
731731
{ "neovim-session-manager", ":SessionManager load_current_dir_session" },
732732
{ "possession.nvim", ":PossessionLoadCwd" },
733733
{ "mini.sessions", ":lua require('mini.sessions').read('local')" },

0 commit comments

Comments
 (0)