Update README.md

main
Oli M 2021-09-07 19:40:54 +01:00 committed by GitHub
parent e70b5e2fc8
commit 1386bac1a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@
- automatically saves the active session under `.config/nvim/sessions` on exit
- simple API to restore the current or last session
- make use of sessions per git branch
## ⚡️ Requirements
@ -51,6 +52,7 @@ Persistence comes with the following defaults:
```lua
{
dir = vim.fn.expand(vim.fn.stdpath("config") .. "/sessions/"), -- directory where session files are saved
use_git_branch = false, -- create session files based on the branch of the git enabled repository
options = { "buffers", "curdir", "tabpages", "winsize" }, -- sessionoptions used for saving
}
```