mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 02:59:49 +01:00
lazy: wrap beforeAll in lua function
This commit is contained in:
parent
b6785f8218
commit
1d2d4cd088
1 changed files with 9 additions and 0 deletions
|
@ -25,6 +25,15 @@
|
|||
(removeAttrs spec ["package" "setupModule" "setupOpts" "keys"])
|
||||
// {
|
||||
"@1" = name;
|
||||
beforeAll =
|
||||
if spec.beforeAll != null
|
||||
then
|
||||
mkLuaInline ''
|
||||
function()
|
||||
${spec.beforeAll}
|
||||
end
|
||||
''
|
||||
else null;
|
||||
before =
|
||||
if spec.before != null
|
||||
then
|
||||
|
|
Loading…
Reference in a new issue