In my statusline, I like to know if persistence.nvim is active. I have a simple helper function:
function using_session()
return (vim.g.using_persistance ~= nil)
end
which I reference and display a corresponding glyph
This creates session files like:
%Users%Oli%Code%Projects%persistance_feature%add-git-branch-to-session
enabling you to segment your project directory by git branch