Skip to content

Persistence.nvim

Persistence.nvim is a powerful session management plugin that helps you save and restore your Neovim workspace state, making it easy to continue your work exactly where you left off.

What Problem Does It Solve?

Managing Neovim sessions can be:

  • Time-consuming
  • Error-prone
  • Inconsistent
  • Hard to organize
  • Difficult to restore

How It Improves Productivity

  1. Easy Session Management:

    • Automatic session saving
    • Quick session restoration
    • Multiple session support
    • Session organization
  2. Workspace Preservation:

    • Saves window layout
    • Remembers buffer state
    • Preserves cursor position
    • Maintains search history
  3. Advanced Features:

    • Session templates
    • Project-specific sessions
    • Session branching
    • Session sharing

How to Use

Basic Commands

  • Use :PersistenceSave to save session
  • Use :PersistenceLoad to load session
  • Use :PersistenceStop to stop auto-save
  • Use :PersistenceToggle to toggle auto-save

Session Management

  • View saved sessions
  • Delete old sessions
  • Rename sessions
  • Share sessions

Integration

  • Works with project.nvim
  • Compatible with telescope
  • Supports session templates
  • Works with git projects