lazy: pass plugin name to custom load function

This commit is contained in:
Ching Pei Yang 2024-11-26 15:50:09 +01:00
commit 4b2701d6c2
No known key found for this signature in database
GPG key ID: B3841364253DC4C8
2 changed files with 2 additions and 2 deletions

View file

@ -88,7 +88,7 @@
if spec.load != null if spec.load != null
then then
mkLuaInline '' mkLuaInline ''
funcion() function(name)
${spec.load} ${spec.load}
end end
'' ''

View file

@ -173,7 +173,7 @@
description = '' description = ''
Lua code to override the `vim.g.lz_n.load()` function for a single plugin. Lua code to override the `vim.g.lz_n.load()` function for a single plugin.
This will be wrapped in a function. This will be wrapped in a `function(name) ... end`.
''; '';
}; };
}; };