mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
58 lines
1.1 KiB
Nix
58 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";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|