From 40bc84d1f8d5964ecf2e308360421b30d7a966f6 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Thu, 28 Mar 2024 13:42:55 +0300 Subject: [PATCH] fixup: use LuaNil instead of deprecated one --- neovim.nix | 2 +- plugins/ux/default.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/neovim.nix b/neovim.nix index 5badf1e..e989787 100644 --- a/neovim.nix +++ b/neovim.nix @@ -23,7 +23,7 @@ let inherit (builtins) catAttrs readFile; myLib = import ./lib.nix { inherit lib substituteAll; } // { - inherit (nix2lua.lib) toLua mkLuaNil; + inherit (nix2lua.lib) toLua LuaNil; }; pluginParams = neovimPlugins // { diff --git a/plugins/ux/default.nix b/plugins/ux/default.nix index 16629aa..b7d398a 100644 --- a/plugins/ux/default.nix +++ b/plugins/ux/default.nix @@ -18,8 +18,8 @@ let orgmodeLuaConfig = lib.optional orgmodeEnable (lib.readSubFile ./nvim-orgmode.lua { inherit orgmodeSettings; }); - colorizerFiletypes = lib.toLua (lib.attrByPath [ "colorizer" "filetypes" ] lib.mkLuaNil plugins); - colorizerSettings = lib.toLua (lib.attrByPath [ "colorizer" "settings" ] lib.mkLuaNil plugins); + colorizerFiletypes = lib.toLua (lib.attrByPath [ "colorizer" "filetypes" ] lib.LuaNil plugins); + colorizerSettings = lib.toLua (lib.attrByPath [ "colorizer" "settings" ] lib.LuaNil plugins); colorizerLuaConfig = lib.readSubFile ./nvim-colorizer.lua { inherit colorizerFiletypes colorizerSettings; };