CONTRIBUTING: fix indenting

This commit is contained in:
Gaetan Lepage 2023-08-07 10:28:55 +02:00 committed by Gaétan Lepage
parent fbcfa4ca4c
commit 4b8ecce30e

View file

@ -33,12 +33,13 @@ To add a new plugin you need to do the following.
```nix ```nix
{ {
lib, lib,
pkgs, pkgs,
... ...
} @ args: } @ args:
let let
helpers = import ../helpers.nix args; helpers = import ../helpers.nix args;
in { in {
} }
``` ```
@ -52,12 +53,16 @@ To add a new plugin you need to do the following.
```nix ```nix
{ {
config = let cfg = config.plugins."<plug-name>"; in lib.mkIf cfg.enable { config =
extraPlugins = [cfg.package]; let
cfg = config.plugins."<plug-name>";
extraConfigLua = '' in lib.mkIf cfg.enable {
<plugin configuration if needed> extraPlugins = [cfg.package];
'';
extraConfigLua = ''
<plugin configuration if needed>
'';
}; };
} }
``` ```