fixup: use LuaNil instead of deprecated one

This commit is contained in:
Dmitriy Pleshevskiy 2024-03-28 13:42:55 +03:00
parent d280679b14
commit 40bc84d1f8
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2
2 changed files with 3 additions and 3 deletions

View file

@ -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 // {

View file

@ -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; };