docs: remove callbacks from default config

main
olimorris 2023-02-23 11:18:52 +00:00
parent d7747ddd6c
commit 3d8d636829
1 changed files with 1 additions and 6 deletions

View File

@ -83,7 +83,7 @@ require("telescope").load_extension("persisted")
The plugin is designed to work with startup screens like [vim-startify](https://github.com/mhinz/vim-startify) or [dashboard](https://github.com/glepnir/dashboard-nvim) out of the box. It will never load a session automatically by default.
However, to lazy load the plugin add the `module = "persisted"` line to packer or `lazy = true` for Lazy.nvim.
However, to lazy load the plugin add the `module = "persisted"` line to Packer or `lazy = true` for Lazy.nvim.
## :rocket: Usage
@ -132,12 +132,7 @@ require("persisted").setup({
follow_cwd = true, -- change session file name to match current working directory if it changes
allowed_dirs = nil, -- table of dirs that the plugin will auto-save and auto-load from
ignored_dirs = nil, -- table of dirs that are ignored when auto-saving and auto-loading
before_save = nil, -- function to run before the session is saved to disk
after_save = nil, -- function to run after the session is saved to disk
after_source = nil, -- function to run after the session is sourced
telescope = { -- options for the telescope extension
before_source = nil, -- function to run before the session is sourced via telescope
after_source = nil, -- function to run after the session is sourced via telescope
reset_prompt_after_deletion = true, -- whether to reset prompt after session deleted
},
})