-
-
Notifications
You must be signed in to change notification settings - Fork 295
/
Copy pathdefault.nix
49 lines (43 loc) · 977 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
pkgs,
lib,
...
}:
let
inherit (lib.nixvim) defaultNullOpts;
in
lib.nixvim.plugins.mkVimPlugin {
name = "direnv";
packPathName = "direnv.vim";
package = "direnv-vim";
globalPrefix = "direnv_";
maintainers = [ lib.maintainers.alisonjenkins ];
settingsOptions = {
direnv_auto = defaultNullOpts.mkFlagInt 1 ''
It will not execute `:DirenvExport` automatically if the value is `0`.
'';
direnv_edit_mode =
defaultNullOpts.mkEnum
[
"edit"
"split"
"tabedit"
"vsplit"
]
"edit"
''
Select the command to open buffers to edit. Default: 'edit'.
'';
direnv_silent_load = defaultNullOpts.mkFlagInt 1 ''
Stop echoing output from Direnv command.
'';
};
extraOptions = {
direnvPackage = lib.mkPackageOption pkgs "direnv" {
nullable = true;
};
};
extraConfig = cfg: {
extraPackages = [ cfg.direnvPackage ];
};
}