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: