diff --git a/README.md b/README.md index 0fa489b..a87d7be 100644 --- a/README.md +++ b/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