From 6df9ed87a74f7608a3d283f9ce31e3c9ee078e2a Mon Sep 17 00:00:00 2001 From: Laszlo Bacsi Date: Fri, 13 Jun 2025 19:48:03 +0200 Subject: [PATCH] style: fix formatting --- modules/plugins/theme/supported-themes.nix | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/modules/plugins/theme/supported-themes.nix b/modules/plugins/theme/supported-themes.nix index d0777a84..1d1f2397 100644 --- a/modules/plugins/theme/supported-themes.nix +++ b/modules/plugins/theme/supported-themes.nix @@ -231,9 +231,12 @@ in { ... }: let parts = splitString "-" style; - detect = list: - let intersection = intersectLists parts list; - in if intersection == [] then null else builtins.head intersection; + detect = list: let + intersection = intersectLists parts list; + in + if intersection == [] + then null + else builtins.head intersection; background = detect backgrounds; palette = detect palettes; variant = detect variants; @@ -251,12 +254,18 @@ in { ''; styles = let joinWithDashes = parts: lib.concatStringsSep "-" (lib.filter (s: s != "") parts); - combinations = mapCartesianProduct ({bg, pal, var}: joinWithDashes [bg pal var]) { + combinations = mapCartesianProduct ({ + bg, + pal, + var, + }: + joinWithDashes [bg pal var]) { bg = [""] ++ backgrounds; pal = [""] ++ palettes; var = [""] ++ variants; }; - in lib.filter (s: s != "") combinations; + in + lib.filter (s: s != "") combinations; }; solarized-osaka = {