ux/colorize: use nil by default
This commit is contained in:
parent
ecd458f1d3
commit
54333ac0a6
2 changed files with 3 additions and 3 deletions
|
@ -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 // {
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Reference in a new issue