colorschemes: set the colorscheme as mkDefault to allow for overriding

This commit is contained in:
Gaetan Lepage 2024-05-28 21:22:35 +02:00 committed by Gaétan Lepage
parent daa6b0f5cf
commit ef63d3477f
2 changed files with 2 additions and 2 deletions

View file

@ -118,7 +118,7 @@ rec {
require('${luaName}').setup(${toLuaObject cfg.settings}) require('${luaName}').setup(${toLuaObject cfg.settings})
''; '';
} }
(optionalAttrs (isColorscheme && (colorscheme != null)) { inherit colorscheme; }) (optionalAttrs (isColorscheme && (colorscheme != null)) { colorscheme = mkDefault colorscheme; })
(extraConfig cfg) (extraConfig cfg)
]); ]);
}; };

View file

@ -105,7 +105,7 @@ with lib;
# does this evaluate package? it would not be desired to evaluate package if we use another package. # does this evaluate package? it would not be desired to evaluate package if we use another package.
extraPlugins = extraPlugins ++ optional (defaultPackage != null) cfg.package; extraPlugins = extraPlugins ++ optional (defaultPackage != null) cfg.package;
} }
(optionalAttrs (isColorscheme && (colorscheme != null)) { inherit colorscheme; }) (optionalAttrs (isColorscheme && (colorscheme != null)) { colorscheme = mkDefault colorscheme; })
(extraConfig cfg) (extraConfig cfg)
]); ]);
}; };