ux/colorize: use nil by default

This commit is contained in:
Dmitriy Pleshevskiy 2023-05-22 15:17:52 +03:00
parent ecd458f1d3
commit 54333ac0a6
Signed by: pleshevskiy
GPG key ID: 79C4487B44403985
2 changed files with 3 additions and 3 deletions

View file

@ -25,7 +25,7 @@ let
inherit (builtins) catAttrs isFunction readFile;
myLib = import ./lib.nix { inherit lib; } // {
inherit substituteAll;
inherit (nix2lua.lib) toLua;
inherit (nix2lua.lib) toLua mkLuaNil;
};
pluginParams = neovimPlugins // {

View file

@ -16,8 +16,8 @@ let
orgmodeSettings = lib.toLua (lib.attrByPath [ "orgmode" "settings" ] { } plugins);
orgmodeLuaConfig = lib.optional enableOrgMode (readFile (lib.substituteAll { src = ./nvim-orgmode.lua; inherit orgmodeSettings; }));
colorizerFiletypes = lib.toLua (lib.attrByPath [ "colorizer" "filetypes" ] { } plugins);
colorizerSettings = lib.toLua (lib.attrByPath [ "colorizer" "settings" ] { } plugins);
colorizerFiletypes = lib.toLua (lib.attrByPath [ "colorizer" "filetypes" ] lib.mkLuaNil plugins);
colorizerSettings = lib.toLua (lib.attrByPath [ "colorizer" "settings" ] lib.mkLuaNil plugins);
colorizerLuaConfig = readFile (lib.substituteAll { src = ./nvim-colorizer.lua; inherit colorizerFiletypes colorizerSettings; });
in
{