1
0
Fork 0
mirror of https://github.com/NotAShelf/neovim-flake.git synced 2025-02-17 22:12:55 +01:00

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

This commit is contained in:
NotAShelf 2024-09-28 21:06:20 +03:00
parent 32aee7efe9
commit 56b4b11efe
No known key found for this signature in database
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";