lib/lua: refactor toLuaObject, now configurable

Heavily based on nixpkgs lib.generators.toPretty
This commit is contained in:
Matt Sturgeon 2024-06-26 15:06:56 +01:00
parent cd479ec0ef
commit aff12581d8
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
3 changed files with 194 additions and 62 deletions

View file

@ -26,7 +26,7 @@ rec {
};
vim-plugin = import ./vim-plugin.nix { inherit lib nixvimOptions nixvimUtils; };
inherit nixvimTypes;
inherit (lua) toLuaObject;
toLuaObject = lua.toLua;
}
// nixvimUtils
// nixvimOptions