docs: update README.md
parent
c58219567d
commit
b42a8a87da
|
|
@ -42,7 +42,7 @@ Install the plugin with your preferred package manager:
|
||||||
```lua
|
```lua
|
||||||
-- Lua
|
-- Lua
|
||||||
use({
|
use({
|
||||||
"olimorris/persisted.nvim"
|
"olimorris/persisted.nvim",
|
||||||
config = true
|
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
|
> **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
|
### 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:
|
By default, the plugin will automatically save a Neovim session to disk when the `VimLeavePre` event is triggered. Autosaving can be turned off by:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue