plugins/auto-session: init + tests

This commit is contained in:
Gaetan Lepage 2023-06-14 16:24:01 +02:00 committed by Gaétan Lepage
parent 24b145ff35
commit 9fd431366a
3 changed files with 234 additions and 0 deletions

View file

@ -0,0 +1,46 @@
{
empty = {
plugins.auto-session.enable = true;
};
example = {
plugins.auto-session = {
enable = true;
logLevel = "error";
autoSession = {
enabled = true;
enableLastSession = false;
rootDir = {__raw = "vim.fn.stdpath 'data' .. '/sessions/'";};
createEnabled = true;
suppressDirs = null;
allowedDirs = [];
useGitBranch = true;
};
autoSave = {
enabled = true;
};
autoRestore = {
enabled = true;
};
cwdChangeHandling = {
restoreUpcomingSession = true;
preCwdChangedHook = null;
postCwdChangedHook = null;
};
bypassSessionSaveFileTypes = [];
sessionLens = {
loadOnSetup = true;
themeConf = {
winblend = 10;
border = true;
};
previewer = false;
sessionControl = {
controlDir = "vim.fn.stdpath 'data' .. '/auto_session/'";
controlFilename = "session_control.json";
};
};
};
};
}