Skip to content

Commit

Permalink
feat(event): track event trigger times
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 2, 2023
1 parent 50a456c commit 46997de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/lazy/core/handler/event.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ function M:trigger(event, pattern, groups)
pattern and (" - **pattern:** " .. pattern),
})
end
Util.track({ event = autocmd.group_name })
Util.try(function()
vim.api.nvim_exec_autocmds(autocmd.event, { group = autocmd.group, modeline = false })
Util.track()
end)
end
end
Expand Down

0 comments on commit 46997de

Please sign in to comment.