plugins.persistence.enable

Whether to enable persistence.nvim.

Type: boolean

Default: false

Example: true

Declared by:

plugins.persistence.package

Which package to use for the persistence.nvim plugin.

Type: package

Default: <derivation vimplugin-persistence.nvim-2024-05-16>

Declared by:

plugins.persistence.dir

directory where session files are saved

Plugin default: vim.fn.expand(vim.fn.stdpath("state") .. "/sessions/")

Type: null or string or raw lua code

Default: null

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

Plugin default: ["buffers" "curdir" "tabpages" "winsize" "skiprtp"]

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

Default: null

Declared by:

plugins.persistence.preSave

a function to call before saving the session

Plugin default: nil

Type: null or lua function string

Default: null

Declared by:

plugins.persistence.saveEmpty

don’t save if there are no open file buffers

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by: