How to use allowed_dirs and ignored_dirs
mainYou can control where persisted.nvim automatically starts or loads sessions using allowed_dirs and ignored_dirs.
Allowed Directories:
Specifying a directory in allowed_dirs will cause the plugin to start and autoload from that directory and all its sub-directories.
allowed_dirs = {
"~/.dotfiles",
"~/Code",
}Ignored Directories:
Directories in ignored_dirs will never be used for starting or autoloading. By default, this ignores the directory and all its children. To ignore only an exact directory match, use the { "path", exact = true } syntax.
ignored_dirs = {
"~/.config",
"~/.local/nvim",
{ "/", exact = true },
{ "/tmp", exact = true }
}