Skip to content

Session plugins

Folke/persistence.nvim

  • Default session plgin for LazyVim: Lazy UI plugins
  • LazyVim uses folke/persistence.nvim for session management
  • "automatically saves the active session under ~/.local/state/nvim/sessions on exit"
  • "simple API to restore the current or last session"

nvim-possession

Issues

Using autoload = true:

Failed to run `config` for indent-blankline.nvim

...local/share/nvim/lazy/LazyVim/lua/lazyvim/plugins/ui.lua:193: attempt to index global 'Snacks' (a nil value)

# stacktrace:
  - /LazyVim/lua/lazyvim/plugins/ui.lua:193 _in_ **values**
  - ~/.config/nvim/lua/plugins/possession.lua:13 _in_ **init**
  - ~/.config/nvim/lua/config/lazy.lua:9
  - ~/.config/nvim/init.lua:8
Executing DiagnosticChanged Autocommands for "*"
autocommand <Lua 66: ~/.local/share/nvim/lazy/trouble.nvim/lua/trouble/sources/diagnostics.lua:70>

Might be fixed in recent (>= 0.10.1) Neovim versions.

auto-session

Other