Skip to content

Commit

Permalink
fix(sessions): change persisted.nvim load session command (#118)
Browse files Browse the repository at this point in the history
## 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
  • Loading branch information
olimorris authored Nov 20, 2024
1 parent 978424c commit 26bec4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/snacks/dashboard.lua
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ M.sections = {}
function M.sections.session(item)
local plugins = {
{ "persistence.nvim", ":lua require('persistence').load()" },
{ "persisted.nvim", ":SessionLoad" },
{ "persisted.nvim", ":lua require('persisted').load()" },
{ "neovim-session-manager", ":SessionManager load_current_dir_session" },
{ "possession.nvim", ":PossessionLoadCwd" },
{ "mini.sessions", ":lua require('mini.sessions').read('local')" },
Expand Down

0 comments on commit 26bec4b

Please sign in to comment.