mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
plugins/mini-sessions: init
This commit is contained in:
parent
854c8adc6a
commit
3e669baf95
2 changed files with 82 additions and 0 deletions
39
plugins/by-name/mini-sessions/default.nix
Normal file
39
plugins/by-name/mini-sessions/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
name = "mini-sessions";
|
||||||
|
moduleName = "mini.sessions";
|
||||||
|
|
||||||
|
maintainers = [ lib.maintainers.HeitorAugustoLN ];
|
||||||
|
|
||||||
|
settingsExample = {
|
||||||
|
autoread = false;
|
||||||
|
autowrite = true;
|
||||||
|
file = "Session.vim";
|
||||||
|
|
||||||
|
force = {
|
||||||
|
read = false;
|
||||||
|
write = true;
|
||||||
|
delete = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
hooks = {
|
||||||
|
pre = {
|
||||||
|
read = lib.nixvim.nestedLiteralLua "nil";
|
||||||
|
write = lib.nixvim.nestedLiteralLua "nil";
|
||||||
|
delete = lib.nixvim.nestedLiteralLua "nil";
|
||||||
|
};
|
||||||
|
|
||||||
|
post = {
|
||||||
|
read = lib.nixvim.nestedLiteralLua "nil";
|
||||||
|
write = lib.nixvim.nestedLiteralLua "nil";
|
||||||
|
delete = lib.nixvim.nestedLiteralLua "nil";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
verbose = {
|
||||||
|
read = false;
|
||||||
|
write = true;
|
||||||
|
delete = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
43
tests/test-sources/plugins/by-name/mini-sessions/default.nix
Normal file
43
tests/test-sources/plugins/by-name/mini-sessions/default.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.mini-sessions.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
plugins.mini-sessions = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
autoread = false;
|
||||||
|
autowrite = true;
|
||||||
|
file = "Session.vim";
|
||||||
|
|
||||||
|
force = {
|
||||||
|
read = false;
|
||||||
|
write = true;
|
||||||
|
delete = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
hooks = {
|
||||||
|
pre = {
|
||||||
|
read = lib.nixvim.mkRaw "nil";
|
||||||
|
write = lib.nixvim.mkRaw "nil";
|
||||||
|
delete = lib.nixvim.mkRaw "nil";
|
||||||
|
};
|
||||||
|
|
||||||
|
post = {
|
||||||
|
read = lib.nixvim.mkRaw "nil";
|
||||||
|
write = lib.nixvim.mkRaw "nil";
|
||||||
|
delete = lib.nixvim.mkRaw "nil";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
verbose = {
|
||||||
|
read = false;
|
||||||
|
write = true;
|
||||||
|
delete = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue