Skip to content

Commit

Permalink
fix(api): Fix type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones2014 committed Mar 29, 2024
1 parent 22fac9d commit 3a47364
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/legendary/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ end
---@diagnostic enable: undefined-doc-param

---Bind a *list of* autocmds and/or augroups
---@param aus (Autocmd|Augroup)[]
---@param aus table
function M.autocmds(aus)
if not vim.tbl_islist(aus) then
Log.error('Expected list, got %s.\n %s', type(aus), vim.inspect(aus))
Expand All @@ -176,7 +176,7 @@ function M.autocmds(aus)
end

---Bind a *single autocmd/augroup*
---@param au Autocmd|Augroup
---@param au table
function M.autocmd(au)
M.autocmds({ au })
end
Expand Down

0 comments on commit 3a47364

Please sign in to comment.