From 4cd7ae4cd490f3d584f081a5062de4e37b2e8471 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Mon, 5 Jan 2026 12:18:50 +0100 Subject: [PATCH] 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. --- modules/programs/neovim.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/programs/neovim.nix b/modules/programs/neovim.nix index 0e74dc3b..414d7941 100644 --- a/modules/programs/neovim.nix +++ b/modules/programs/neovim.nix @@ -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;