mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
CONTRIBUTING: fix indenting
This commit is contained in:
parent
fbcfa4ca4c
commit
4b8ecce30e
1 changed files with 14 additions and 9 deletions
|
@ -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>
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue