docs(lua): use overload type annnotation

This commit is contained in:
Marc Jakobi
2024-06-17 18:37:40 +02:00
parent feb45425db
commit 2989fd3fe2
+2 -1
View File
@@ -14,7 +14,8 @@ local deferred_ui_enter = vim.schedule_wrap(function()
vim.api.nvim_exec_autocmds("User", { pattern = "DeferredUIEnter", modeline = false })
end)
---@param spec string | lz.n.Spec
---@overload fun(spec: lz.n.Spec)
---@overload fun(import: string)
function M.load(spec)
if type(spec) == "string" then
spec = { import = spec }