Skip to content

Commit dc0543b

Browse files
plugins/mini-git: init
1 parent 1c5c991 commit dc0543b

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

plugins/by-name/mini-git/default.nix

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{ lib, ... }:
2+
let
3+
inherit (lib.nixvim) defaultNullOpts;
4+
in
5+
lib.nixvim.plugins.mkNeovimPlugin {
6+
name = "mini-git";
7+
moduleName = "mini.git";
8+
packPathName = "mini.git";
9+
10+
maintainers = [ lib.maintainers.HeitorAugustoLN ];
11+
12+
dependencies = [ "git" ];
13+
14+
settingsOptions = {
15+
job = {
16+
git_executable = defaultNullOpts.mkStr "git" ''
17+
Path to Git executable.
18+
'';
19+
20+
timeout = defaultNullOpts.mkNum 30000 ''
21+
Timeout (in ms) for each job before force quit.
22+
'';
23+
};
24+
25+
command = {
26+
split = defaultNullOpts.mkEnum [ "horizontal" "vertical" "tab" "auto" ] "auto" ''
27+
Default split direction.
28+
'';
29+
};
30+
};
31+
32+
settingsExample = {
33+
job.timeout = 20000;
34+
command.split = "horizontal";
35+
};
36+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
empty = {
3+
plugins.mini-git.enable = true;
4+
};
5+
6+
example = {
7+
plugins.mini-git = {
8+
enable = true;
9+
settings = {
10+
job.timeout = 20000;
11+
command.split = "horizontal";
12+
};
13+
};
14+
};
15+
}

0 commit comments

Comments
 (0)