plugins.persistence.enable

Whether to enable persistence.nvim.

Type: boolean

Default: false

Example: true

Declared by:

plugins.persistence.package

The persistence.nvim package to use.

Type: package

Default: pkgs.vimPlugins.persistence-nvim

Declared by:

plugins.persistence.dir

directory where session files are saved

Type: null or string or raw lua code

Default: null

Plugin default:

{
  __raw = "vim.fn.expand(vim.fn.stdpath(\"state\") .. \"/sessions/\")";
}

Declared by:

plugins.persistence.extraOptions

These attributes will be added to the table parameter for the setup function. Typically, it can override NixVim’s default settings.

Type: attribute set of anything

Default: { }

Declared by:

plugins.persistence.options

sessionoptions used for saving

Type: null or (list of (one of “blank”, “buffers”, “curdir”, “folds”, “globals”, “help”, “localoptions”, “options”, “skiprtp”, “resize”, “sesdir”, “tabpages”, “terminal”, “winpos”, “winsize” or raw lua code))

Default: null

Plugin default:

[
  "buffers"
  "curdir"
  "tabpages"
  "winsize"
  "skiprtp"
]

Declared by:

plugins.persistence.preSave

a function to call before saving the session

Type: null or lua function string

Default: null

Plugin default: "nil"

Declared by:

plugins.persistence.saveEmpty

don’t save if there are no open file buffers

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by: