File tree Expand file tree Collapse file tree 2 files changed +51
-0
lines changed
tests/test-sources/plugins/by-name/mini-git Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments