diff --git a/README.md b/README.md index 644069f..6d09a9e 100644 --- a/README.md +++ b/README.md @@ -194,7 +194,7 @@ require("persisted").setup({ Autosaving can be further controlled for certain directories by specifying `allowed_dirs` and `ignored_dirs`. -There may be occasions when you do not wish to autosave; perhaps when a dashboard or a certain buftype is present. To control this, a callback function, `should_autosave`, may be used. This function should return a boolean value. +There may be occasions when you do not wish to autosave; perhaps when a dashboard or a certain buftype is present. To control this, a callback function, `should_autosave`, may be used which should return a boolean value. ```lua require("persisted").setup({ @@ -208,6 +208,10 @@ require("persisted").setup({ }) ``` +Of course, if you wish to manually save the session when autosaving is disabled, the `:SessionSave` command can be used. + +> **Note**: If `autosave = false` then the `should_autosave` callback will not be executed. + ### Autoloading The plugin can be enabled to automatically load sessions when Neovim is started. Whilst off by default, this can be turned on by: