From 56b4b11efe9468bfb2fc3f61793fd5ccc68d0d89 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sat, 28 Sep 2024 21:06:20 +0300 Subject: [PATCH] wrapper/rc: don't filter null values in {options,global}Script --- modules/wrapper/rc/config.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/wrapper/rc/config.nix b/modules/wrapper/rc/config.nix index 417077a6..193be3fc 100644 --- a/modules/wrapper/rc/config.nix +++ b/modules/wrapper/rc/config.nix @@ -80,14 +80,11 @@ maps); in { config = let - filterNonNull = attrs: filterAttrs (_: value: value != null) attrs; globalsScript = - mapAttrsToList (name: value: "vim.g.${name} = ${toLuaObject value}") - (filterNonNull cfg.globals); + mapAttrsToList (name: value: "vim.g.${name} = ${toLuaObject value}") cfg.globals; optionsScript = - mapAttrsToList (name: value: "vim.o.${name} = ${toLuaObject value}") - (filterNonNull cfg.options); + mapAttrsToList (name: value: "vim.o.${name} = ${toLuaObject value}") cfg.options; extraPluginConfigs = resolveDag { name = "extra plugin configs";