From 5b129201f35a482efd8bbd6c725adff84ebc01d1 Mon Sep 17 00:00:00 2001 From: Gerg-L Date: Sun, 11 Aug 2024 19:36:02 -0400 Subject: [PATCH] remove ussage of mapAttrsFlatten --- modules/wrapper/rc/config.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/wrapper/rc/config.nix b/modules/wrapper/rc/config.nix index be299f3b..78edb597 100644 --- a/modules/wrapper/rc/config.nix +++ b/modules/wrapper/rc/config.nix @@ -5,9 +5,8 @@ }: let inherit (builtins) map mapAttrs filter; inherit (lib.options) mkOption; - inherit (lib.attrsets) filterAttrs getAttrs attrValues attrNames; + inherit (lib.attrsets) mapAttrsToList filterAttrs getAttrs attrValues attrNames; inherit (lib.strings) concatLines concatMapStringsSep; - inherit (lib.misc) mapAttrsFlatten; inherit (lib.trivial) showWarnings; inherit (lib.types) str nullOr; inherit (lib.generators) mkLuaInline; @@ -83,7 +82,7 @@ in { config = let filterNonNull = attrs: filterAttrs (_: value: value != null) attrs; globalsScript = - mapAttrsFlatten (name: value: "vim.g.${name} = ${toLuaObject value}") + mapAttrsToList (name: value: "vim.g.${name} = ${toLuaObject value}") (filterNonNull cfg.globals); extraPluginConfigs = resolveDag {