Who better to preside over your sessions than a judge?
Judge is a minimal session management plugin that is 100% based around my own means of navigating projects.
The normal methods
{
'questionableantics/judge.nvim',
dependencies = {
'nvim-telescope/telescope.nvim',
}
}
If you want to be able to select sessions to delete and switch to from a picker, you'll need telescope.nvim
It loads quick enough (never more than a millisecond according to Lazy Profile)
There are a few functions exposed that you can bind your own keymappings to
Persists your current session
require('judge.nvim').save_session()
Deletes your current session. Accepts an optional session_name
parameter, defaulting to your current session if one is not passed in.
require('judge.nvim').delete_session()
Open a telescope picker for your existing sessions
require('judge.nvim').search_switch_sessions()
Open a telescope picker to delete from your existing sessions
require('judge.nvim').search_delete_sessions()
Convenience method to open the session you last switched from.
Does not trigger if this is the first session since opening Neovim
require('judge.nvim').go_to_previous_session()