docs: lazy install

This commit is contained in:
Folke Lemaitre 2023-05-22 16:38:25 +02:00
parent c814fae5c3
commit 7b86ec2430
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040

View File

@ -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