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
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
} @ args:
|
||||
|
||||
let
|
||||
helpers = import ../helpers.nix args;
|
||||
helpers = import ../helpers.nix args;
|
||||
in {
|
||||
}
|
||||
```
|
||||
|
@ -52,12 +53,16 @@ To add a new plugin you need to do the following.
|
|||
|
||||
```nix
|
||||
{
|
||||
config = let cfg = config.plugins."<plug-name>"; in lib.mkIf cfg.enable {
|
||||
extraPlugins = [cfg.package];
|
||||
config =
|
||||
let
|
||||
cfg = config.plugins."<plug-name>";
|
||||
|
||||
extraConfigLua = ''
|
||||
<plugin configuration if needed>
|
||||
'';
|
||||
in lib.mkIf cfg.enable {
|
||||
extraPlugins = [cfg.package];
|
||||
|
||||
extraConfigLua = ''
|
||||
<plugin configuration if needed>
|
||||
'';
|
||||
};
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue