docs: lazy install
This commit is contained in:
parent
c814fae5c3
commit
7b86ec2430
26
README.md
26
README.md
@ -15,33 +15,17 @@
|
||||
|
||||
Install the plugin with your preferred package manager:
|
||||
|
||||
### [packer](https://github.com/wbthomason/packer.nvim)
|
||||
### [folke](https://github.com/folke/lazy.nvim)
|
||||
|
||||
```lua
|
||||
-- Lua
|
||||
use({
|
||||
{
|
||||
"folke/persistence.nvim",
|
||||
event = "BufReadPre", -- this will only start session saving when an actual file was opened
|
||||
module = "persistence",
|
||||
config = function()
|
||||
require("persistence").setup()
|
||||
end,
|
||||
})
|
||||
```
|
||||
|
||||
### [vim-plug](https://github.com/junegunn/vim-plug)
|
||||
|
||||
```vim
|
||||
" Vim Script
|
||||
Plug 'folke/persistence.nvim'
|
||||
|
||||
lua << EOF
|
||||
require("persistence").setup {
|
||||
-- your configuration comes here
|
||||
-- or leave it empty to use the default settings
|
||||
-- refer to the configuration section below
|
||||
opts = {
|
||||
-- add any custom options here
|
||||
}
|
||||
EOF
|
||||
}
|
||||
```
|
||||
|
||||
## ⚙️ Configuration
|
||||
|
Loading…
x
Reference in New Issue
Block a user