nix-community.nixvim/tests/test-sources/plugins/by-name/projections/default.nix
2025-01-12 20:00:49 +00:00

57 lines
1.1 KiB
Nix

{
empty = {
plugins.projections.enable = true;
};
defaults = {
plugins.projections = {
enable = true;
settings = {
store_hooks = {
pre = null;
post = null;
};
restore_hooks = {
pre = null;
post = null;
};
workspaces = [ ];
patterns = [
".git"
".svn"
".hg"
];
workspaces_file.__raw = "vim.fn.stdpath('data') .. 'projections_workspaces.json'";
sessions_directory.__raw = "vim.fn.stdpath('cache') .. 'projections_sessions'";
};
};
};
example = {
plugins.projections = {
enable = true;
settings = {
workspaces = [
[
"~/Documents/dev"
[ ".git" ]
]
[
"~/repos"
[ ]
]
"~/dev"
];
patterns = [
".git"
".svn"
".hg"
];
workspaces_file = "path/to/file";
sessions_directory = "path/to/dir";
};
};
};
}