From 98f72045cde2949abed11e3d908d4ffdb727a132 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 22 Feb 2023 15:03:26 +0000 Subject: [PATCH] chore(build): auto-generate vimdoc --- doc/persisted.nvim.txt | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/doc/persisted.nvim.txt b/doc/persisted.nvim.txt index 1dfdc84..aec1864 100644 --- a/doc/persisted.nvim.txt +++ b/doc/persisted.nvim.txt @@ -1,4 +1,4 @@ -*persisted.nvim.txt* For Neovim >= 0.7.0 Last change: 2023 February 21 +*persisted.nvim.txt* For Neovim >= 0.7.0 Last change: 2023 February 22 ============================================================================== Table of Contents *persisted.nvim-table-of-contents* @@ -137,7 +137,6 @@ The plugin comes with the following defaults: >lua require("persisted").setup({ save_dir = vim.fn.expand(vim.fn.stdpath("data") .. "/sessions/"), -- directory where session files are saved - command = "VimLeavePre", -- the autocommand for which the session is saved silent = false, -- silent nvim message when sourcing session file use_git_branch = false, -- create session files based on the branch of the git enabled repository autosave = true, -- automatically save session files when exiting Neovim @@ -184,20 +183,8 @@ configuration option. For example: **Note:** The plugin may be unable to find existing sessions if the `save_dir` value is changed -AUTOCMD TO SAVE SESSION ~ +GIT BRANCHING ~ -By default, a session is saved to disk when the `VimLeavePre` autocommand is -triggered. This can be modified by: - ->lua - require("persisted").setup({ - command = "VimLeavePre", - }) -< - - - **Note:** See `:h autocmds` for more information on possible autocmds Git - branching One of the plugin’s core features is the ability to have multiple sessions files for a given project, by using git branches. To enable git branching: