docs: update README.md

main
olimorris 2023-05-31 22:45:49 +01:00
parent c58219567d
commit b42a8a87da
1 changed files with 3 additions and 1 deletions

View File

@ -42,7 +42,7 @@ Install the plugin with your preferred package manager:
```lua
-- Lua
use({
"olimorris/persisted.nvim"
"olimorris/persisted.nvim",
config = true
})
```
@ -182,6 +182,8 @@ require("persisted").setup({
> **Note**: If git branching is enabled on a non git enabled repo, then `main` will be used as the default branch
If you switch branches in a repository, the plugin will try to load a session which corresponds to that branch. If it can't find one, then it will load the session from the `main` branch.
### Autosaving
By default, the plugin will automatically save a Neovim session to disk when the `VimLeavePre` event is triggered. Autosaving can be turned off by: