Closed Kirens closed 1 year ago
Previous version of nix2lua only cared about custom types such as rawLua in attrsets. Thus making someModule.attr = {someVar, someOtherVar} impossible to represent.
nix2lua
rawLua
someModule.attr = {someVar, someOtherVar}
This was my solution, if you find it suitable.
P.S. Really promising project.
Hey, can you add this to the test? If i recall correctly we have simple test which compares definition and parsed result
I think I managed to include a crude check for this:
https://github.com/gytis-ivaskevicius/nix2vim/blob/cca7b958cd7e190692929a2bcc5d26a2e890b3d8/checks/default.nix#L30-L41
https://github.com/gytis-ivaskevicius/nix2vim/blob/cca7b958cd7e190692929a2bcc5d26a2e890b3d8/checks/default.nix#L66-L68
Sorry that it took this long to merge this, it looks great. Thanks!!!
Previous version of
nix2lua
only cared about custom types such asrawLua
in attrsets. Thus makingsomeModule.attr = {someVar, someOtherVar}
impossible to represent.This was my solution, if you find it suitable.
P.S. Really promising project.