feat(event): track event trigger times

This commit is contained in:
Folke Lemaitre 2023-01-02 11:26:54 +01:00
parent 50a456c189
commit 46997de1c9
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 2 additions and 0 deletions

View File

@ -75,8 +75,10 @@ function M:trigger(event, pattern, groups)
pattern and (" - **pattern:** " .. pattern), pattern and (" - **pattern:** " .. pattern),
}) })
end end
Util.track({ event = autocmd.group_name })
Util.try(function() Util.try(function()
vim.api.nvim_exec_autocmds(autocmd.event, { group = autocmd.group, modeline = false }) vim.api.nvim_exec_autocmds(autocmd.event, { group = autocmd.group, modeline = false })
Util.track()
end) end)
end end
end end