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:
parent
32aee7efe9
commit
56b4b11efe
1 changed files with 2 additions and 5 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Reference in a new issue