Skip to content

Commit

Permalink
fix(event): use tbl_contains instead of list_contains
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 6, 2023
1 parent 58e954a commit 2b2adb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/core/handler/event.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function M.trigger(opts)
local done = {} ---@type table<string,true>
for _, autocmd in ipairs(vim.api.nvim_get_autocmds({ event = opts.event, pattern = opts.pattern })) do
local id = autocmd.event .. ":" .. (autocmd.group or "") ---@type string
local skip = done[id] or (opts.exclude and vim.list_contains(opts.exclude, autocmd.group))
local skip = done[id] or (opts.exclude and vim.tbl_contains(opts.exclude, autocmd.group))
done[id] = true
if autocmd.group and not skip then
if Config.options.debug then
Expand Down

0 comments on commit 2b2adb9

Please sign in to comment.