From e9f9353c45770f3e45dca41f98ae8dbb968583b8 Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Wed, 9 Oct 2024 00:08:30 +0200 Subject: [PATCH] more mapAttrs because diniamo loves it so much --- modules/plugins/theme/supported-themes.nix | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/modules/plugins/theme/supported-themes.nix b/modules/plugins/theme/supported-themes.nix index 5f32c00..0d42cc1 100644 --- a/modules/plugins/theme/supported-themes.nix +++ b/modules/plugins/theme/supported-themes.nix @@ -155,13 +155,17 @@ in { default = cfg.transparent; internal = true; }; - italic = { - strings = mkEnableOption' "strings"; - emphasis = mkEnableOption' "emphasis"; - comments = mkEnableOption' "comments"; - operators = mkEnableOption "operators"; - folds = mkEnableOption' "folds"; - }; + italic = + { + operators = mkEnableOption "operators"; + } + // genAttrs [ + "strings" + "emphasis" + "comments" + "folds" + ] (name: mkEnableOption' name); + contrast = mkOption { type = str; default = "";