mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 17:58:38 +02:00
plugins/auto-session: init + tests
This commit is contained in:
parent
24b145ff35
commit
9fd431366a
3 changed files with 234 additions and 0 deletions
46
tests/test-sources/plugins/utils/auto-session.nix
Normal file
46
tests/test-sources/plugins/utils/auto-session.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue