Closed UtkarshVerma closed 1 year ago
We default to XDG_STATE_HOME
, which is specifically meant for this purpose. https://github.com/folke/persistence.nvim/blob/8484fdaa284207f77ec69b9627316bf334ad653f/lua/persistence/config.lua#L5
Oh, that's great then. I was misled by the README which mentions ~/.config/nvim/sessions
being used.
Ah good point. Will update the readme
$XDG_CACHE_HOME/nvim/sessions
(defualts~/.cache/nvim/sessions
would be a better directory for caching the session data according to the XDG directory specification.https://wiki.archlinux.org/title/XDG_Base_Directory'