wrapper/rc: don't filter null values in {options,global}Script

This commit is contained in:
raf 2024-09-28 21:06:20 +03:00
commit 56b4b11efe
Signed by: NotAShelf
GPG key ID: AF26552424E53993

View file

@ -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";