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:
|
Install the plugin with your preferred package manager:
|
||||||
|
|
||||||
### [packer](https://github.com/wbthomason/packer.nvim)
|
### [folke](https://github.com/folke/lazy.nvim)
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
-- Lua
|
-- Lua
|
||||||
use({
|
{
|
||||||
"folke/persistence.nvim",
|
"folke/persistence.nvim",
|
||||||
event = "BufReadPre", -- this will only start session saving when an actual file was opened
|
event = "BufReadPre", -- this will only start session saving when an actual file was opened
|
||||||
module = "persistence",
|
opts = {
|
||||||
config = function()
|
-- add any custom options here
|
||||||
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
|
|
||||||
}
|
}
|
||||||
EOF
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## ⚙️ Configuration
|
## ⚙️ Configuration
|
||||||
|
Loading…
x
Reference in New Issue
Block a user