mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-12-16 17:11:02 +00: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);
|
maps);
|
||||||
in {
|
in {
|
||||||
config = let
|
config = let
|
||||||
filterNonNull = attrs: filterAttrs (_: value: value != null) attrs;
|
|
||||||
globalsScript =
|
globalsScript =
|
||||||
mapAttrsToList (name: value: "vim.g.${name} = ${toLuaObject value}")
|
mapAttrsToList (name: value: "vim.g.${name} = ${toLuaObject value}") cfg.globals;
|
||||||
(filterNonNull cfg.globals);
|
|
||||||
|
|
||||||
optionsScript =
|
optionsScript =
|
||||||
mapAttrsToList (name: value: "vim.o.${name} = ${toLuaObject value}")
|
mapAttrsToList (name: value: "vim.o.${name} = ${toLuaObject value}") cfg.options;
|
||||||
(filterNonNull cfg.options);
|
|
||||||
|
|
||||||
extraPluginConfigs = resolveDag {
|
extraPluginConfigs = resolveDag {
|
||||||
name = "extra plugin configs";
|
name = "extra plugin configs";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue