diff --git a/README.md b/README.md index 5950547..334d0c9 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Install the plugin with your preferred package manager: -- Lua use({ "folke/persistence.nvim", - event = "VimEnter", + event = "BufReadPre", -- this will only start session saving when an actual file was opened module = "persistence", config = function() require("persistence").setup() @@ -29,6 +29,21 @@ use({ }) ``` +### [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 Persistence comes with the following defaults: