From b42a8a87da7586e85ea37b31757c96e51fcf4db5 Mon Sep 17 00:00:00 2001 From: olimorris Date: Wed, 31 May 2023 22:45:49 +0100 Subject: [PATCH] docs: update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a13a6d9..3b93301 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ Install the plugin with your preferred package manager: ```lua -- Lua use({ - "olimorris/persisted.nvim" + "olimorris/persisted.nvim", config = true }) ``` @@ -182,6 +182,8 @@ require("persisted").setup({ > **Note**: If git branching is enabled on a non git enabled repo, then `main` will be used as the default branch +If you switch branches in a repository, the plugin will try to load a session which corresponds to that branch. If it can't find one, then it will load the session from the `main` branch. + ### Autosaving By default, the plugin will automatically save a Neovim session to disk when the `VimLeavePre` event is triggered. Autosaving can be turned off by: