From 54333ac0a66de85a4006a75beef5be265a15f7a1 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Mon, 22 May 2023 15:17:52 +0300 Subject: [PATCH] ux/colorize: use nil by default --- neovim.nix | 2 +- plugins/ux/default.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/neovim.nix b/neovim.nix index e17176f..fbc66e5 100644 --- a/neovim.nix +++ b/neovim.nix @@ -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 // { diff --git a/plugins/ux/default.nix b/plugins/ux/default.nix index 52a7627..ebe3f02 100644 --- a/plugins/ux/default.nix +++ b/plugins/ux/default.nix @@ -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 {