mirror of
https://github.com/zoriya/lz.n.git
synced 2026-06-01 18:35:18 +00:00
docs(lua): use overload type annnotation
This commit is contained in:
+2
-1
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user