mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-23 20:25:08 +02:00
plugins/projections: init
This commit is contained in:
parent
4527abba58
commit
5f3785feb8
2 changed files with 177 additions and 0 deletions
57
tests/test-sources/plugins/by-name/projections/default.nix
Normal file
57
tests/test-sources/plugins/by-name/projections/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue