We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25f6009 commit 6b37927Copy full SHA for 6b37927
lua/lazy/core/handler/event.lua
@@ -15,14 +15,16 @@ function M:_add(value)
15
---@type string?, string?
16
local event, pattern = event_spec:match("^(%w+)%s+(.*)$")
17
event = event or event_spec
18
+ local done = false
19
vim.api.nvim_create_autocmd(event, {
20
group = self.group,
21
once = true,
22
pattern = pattern,
23
callback = function(ev)
- if not self.active[value] then
24
+ if done or not self.active[value] then
25
return
26
end
27
+ done = true
28
Util.track({ [self.type] = value })
29
local groups = M.get_augroups(ev.event, pattern)
30
-- load the plugins
0 commit comments