plugins/projections: init

This commit is contained in:
Gaetan Lepage 2025-01-10 22:51:39 +01:00 committed by nix-infra-bot
parent 4527abba58
commit 5f3785feb8
2 changed files with 177 additions and 0 deletions

View file

@ -0,0 +1,57 @@
{
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";
};
};
};
}