Skip to content

Commit 4b8ecce

Browse files
committed
CONTRIBUTING: fix indenting
1 parent fbcfa4c commit 4b8ecce

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

CONTRIBUTING.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ To add a new plugin you need to do the following.
3333

3434
```nix
3535
{
36-
lib,
37-
pkgs,
38-
...
36+
lib,
37+
pkgs,
38+
...
3939
} @ args:
40+
4041
let
41-
helpers = import ../helpers.nix args;
42+
helpers = import ../helpers.nix args;
4243
in {
4344
}
4445
```
@@ -52,12 +53,16 @@ To add a new plugin you need to do the following.
5253
5354
```nix
5455
{
55-
config = let cfg = config.plugins."<plug-name>"; in lib.mkIf cfg.enable {
56-
extraPlugins = [cfg.package];
56+
config =
57+
let
58+
cfg = config.plugins."<plug-name>";
59+
60+
in lib.mkIf cfg.enable {
61+
extraPlugins = [cfg.package];
5762
58-
extraConfigLua = ''
59-
<plugin configuration if needed>
60-
'';
63+
extraConfigLua = ''
64+
<plugin configuration if needed>
65+
'';
6166
};
6267
}
6368
```

0 commit comments

Comments
 (0)