neovim: builtins.groupBy -> lib.groupBy
lib.groupBy is an alias for builtins.groupBy which should be preferred, as it also has a compatibility shim in case the Nix implementation doesn't have the builtin function.
This commit is contained in:
parent
e43f7c3321
commit
4cd7ae4cd4
1 changed files with 1 additions and 1 deletions
|
|
@ -459,7 +459,7 @@ in
|
|||
|
||||
generatedConfigs =
|
||||
let
|
||||
grouped = builtins.groupBy (x: x.type) pluginsNormalized;
|
||||
grouped = lib.groupBy (x: x.type) pluginsNormalized;
|
||||
configsOnly = lib.foldl (acc: p: if p.config != null then acc ++ [ p.config ] else acc) [ ];
|
||||
in
|
||||
lib.mapAttrs (_name: vals: lib.concatStringsSep "\n" (configsOnly vals)) grouped;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue