File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,13 @@ To add a new plugin you need to do the following.
33
33
34
34
``` nix
35
35
{
36
- lib,
37
- pkgs,
38
- ...
36
+ lib,
37
+ pkgs,
38
+ ...
39
39
} @ args:
40
+
40
41
let
41
- helpers = import ../helpers.nix args;
42
+ helpers = import ../helpers.nix args;
42
43
in {
43
44
}
44
45
```
@@ -52,12 +53,16 @@ To add a new plugin you need to do the following.
52
53
53
54
```nix
54
55
{
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];
57
62
58
- extraConfigLua = ''
59
- <plugin configuration if needed>
60
- '';
63
+ extraConfigLua = ''
64
+ <plugin configuration if needed>
65
+ '';
61
66
};
62
67
}
63
68
```
You can’t perform that action at this time.
0 commit comments