nix-community.nixvim/tests/test-sources/plugins/utils/auto-session.nix

49 lines
1.1 KiB
Nix
Raw Normal View History

2023-06-14 16:24:01 +02:00
{
empty = {
plugins.auto-session.enable = true;
};
example = {
plugins.auto-session = {
enable = true;
logLevel = "error";
autoSession = {
enabled = true;
enableLastSession = false;
2024-05-05 19:39:35 +02:00
rootDir = {
__raw = "vim.fn.stdpath 'data' .. '/sessions/'";
};
2023-06-14 16:24:01 +02:00
createEnabled = true;
suppressDirs = null;
2024-05-05 19:39:35 +02:00
allowedDirs = [ ];
2023-06-14 16:24:01 +02:00
useGitBranch = true;
};
autoSave = {
enabled = true;
};
autoRestore = {
enabled = true;
};
cwdChangeHandling = {
restoreUpcomingSession = true;
preCwdChangedHook = null;
postCwdChangedHook = null;
};
2024-05-05 19:39:35 +02:00
bypassSessionSaveFileTypes = [ ];
2023-06-14 16:24:01 +02:00
sessionLens = {
loadOnSetup = true;
themeConf = {
winblend = 10;
border = true;
};
previewer = false;
sessionControl = {
controlDir = "vim.fn.stdpath 'data' .. '/auto_session/'";
controlFilename = "session_control.json";
};
};
};
};
}