-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(plugins): add persistence and dashboard
- Loading branch information
Stephane Pluchart
committed
Jan 17, 2025
1 parent
8384018
commit 1209f3e
Showing
3 changed files
with
25 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
return { | ||
'folke/persistence.nvim', | ||
event = 'BufReadPre', -- this will only start session saving when an actual file was opened | ||
opts = { | ||
dir = vim.fn.stdpath('state') .. '/sessions/', -- directory where session files are saved | ||
-- minimum number of file buffers that need to be open to save | ||
-- Set to 0 to always save | ||
need = 1, | ||
branch = true, -- use git branch to save session | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters