mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 21:30:51 +00:00
lz.n: wrap lua code in function
This commit is contained in:
parent
c027a87527
commit
09e83a6cec
1 changed files with 9 additions and 0 deletions
|
@ -31,6 +31,15 @@
|
||||||
(removeAttrs spec ["package" "setupModule" "setupOpts" "keys"])
|
(removeAttrs spec ["package" "setupModule" "setupOpts" "keys"])
|
||||||
// {
|
// {
|
||||||
"@1" = name;
|
"@1" = name;
|
||||||
|
before =
|
||||||
|
if spec.before != null
|
||||||
|
then
|
||||||
|
mkLuaInline ''
|
||||||
|
function()
|
||||||
|
${spec.before}
|
||||||
|
end
|
||||||
|
''
|
||||||
|
else null;
|
||||||
after = mkLuaInline ''
|
after = mkLuaInline ''
|
||||||
function()
|
function()
|
||||||
${
|
${
|
||||||
|
|
Loading…
Reference in a new issue