Skip to content

Commit 2b2adb9

Browse files
committed
fix(event): use tbl_contains instead of list_contains
1 parent 58e954a commit 2b2adb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/lazy/core/handler/event.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function M.trigger(opts)
6868
local done = {} ---@type table<string,true>
6969
for _, autocmd in ipairs(vim.api.nvim_get_autocmds({ event = opts.event, pattern = opts.pattern })) do
7070
local id = autocmd.event .. ":" .. (autocmd.group or "") ---@type string
71-
local skip = done[id] or (opts.exclude and vim.list_contains(opts.exclude, autocmd.group))
71+
local skip = done[id] or (opts.exclude and vim.tbl_contains(opts.exclude, autocmd.group))
7272
done[id] = true
7373
if autocmd.group and not skip then
7474
if Config.options.debug then

0 commit comments

Comments
 (0)