mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 21:30:51 +00:00
lazy: add missing load() wrapper
This commit is contained in:
parent
33f584b8e1
commit
11bb327ab5
1 changed files with 10 additions and 0 deletions
|
@ -50,6 +50,16 @@
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
load =
|
||||||
|
if spec.load != null
|
||||||
|
then
|
||||||
|
mkLuaInline ''
|
||||||
|
funcion()
|
||||||
|
${spec.load}
|
||||||
|
end
|
||||||
|
''
|
||||||
|
else null;
|
||||||
|
|
||||||
keys =
|
keys =
|
||||||
if typeOf spec.keys == "list" && length spec.keys > 0 && typeOf (head spec.keys) == "set"
|
if typeOf spec.keys == "list" && length spec.keys > 0 && typeOf (head spec.keys) == "set"
|
||||||
then map toLuaLznKeySpec (filter (keySpec: keySpec.key != null) spec.keys)
|
then map toLuaLznKeySpec (filter (keySpec: keySpec.key != null) spec.keys)
|
||||||
|
|
Loading…
Reference in a new issue