Skip to content

Commit

Permalink
chore(api): user.util code improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
DrKJeff16 committed Jun 5, 2024
1 parent c983b9f commit 26e3722
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/user/util/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function M.assoc()

local au = vim.api.nvim_create_autocmd

local group = vim.api.nvim_create_augroup('UserAssocs', { clear = false })
local group = vim.api.nvim_create_augroup('UserAssocs', { clear = true })

---@type AuRepeatEvents[]
local aus = {
Expand Down Expand Up @@ -174,7 +174,7 @@ function M.assoc()
goto continue
end

if not is_nil(o.callback) and not is_fun(o.callback) then
if not is_fun(o.callback) then
M.notify.notify('(user.assoc): Callback is not a function', 'error')
goto continue
end
Expand Down

0 comments on commit 26e3722

Please sign in to comment.