forked from nix-community/nixvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
direnv.nix
33 lines (29 loc) · 864 Bytes
/
direnv.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
{
config,
helpers,
pkgs,
lib,
...
}:
with lib;
helpers.vim-plugin.mkVimPlugin config {
name = "direnv";
originalName = "direnv.vim";
defaultPackage = pkgs.vimPlugins.direnv-vim;
globalPrefix = "direnv_";
extraPackages = [pkgs.direnv];
maintainers = [helpers.maintainers.alisonjenkins];
settingsOptions = {
direnv_auto = helpers.defaultNullOpts.mkBool true ''
It will not execute :DirenvExport automatically if the value is false. Default: true.
'';
direnv_edit_mode =
helpers.defaultNullOpts.mkEnum ["edit" "split" "tabedit" "vsplit"]
"edit" ''
Select the command to open buffers to edit. Default: 'edit'.
'';
direnv_silent_load = helpers.defaultNullOpts.mkBool true ''
Stop echoing output from Direnv command. Default: true
'';
};
}