File tree 3 files changed +9
-2
lines changed
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,9 @@ function M:_add(event)
75
75
end
76
76
-- HACK: work-around for https://github.com/neovim/neovim/issues/25526
77
77
done = true
78
- Util .track ({ [self .type ] = event .id })
78
+ if event .id ~= " VeryLazy" then
79
+ Util .track ({ [self .type ] = event .id })
80
+ end
79
81
80
82
local state = M .get_state (ev .event , ev .buf , ev .data )
81
83
@@ -86,7 +88,9 @@ function M:_add(event)
86
88
for _ , s in ipairs (state ) do
87
89
M .trigger (s )
88
90
end
89
- Util .track ()
91
+ if event .id ~= " VeryLazy" then
92
+ Util .track ()
93
+ end
90
94
end ,
91
95
})
92
96
end
Original file line number Diff line number Diff line change @@ -171,7 +171,9 @@ function M.very_lazy()
171
171
return
172
172
end
173
173
vim .g .did_very_lazy = true
174
+ M .track ({ event = " VeryLazy" })
174
175
vim .api .nvim_exec_autocmds (" User" , { pattern = " VeryLazy" , modeline = false })
176
+ M .track ()
175
177
end )
176
178
end
177
179
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ M.C = nil
21
21
22
22
function M .on_ui_enter ()
23
23
M ._stats .startuptime = M .track (" UIEnter" )
24
+ require (" lazy.core.util" ).track ({ start = " startuptime" }, M ._stats .startuptime * 1e6 )
24
25
vim .api .nvim_exec_autocmds (" User" , { pattern = " LazyVimStarted" , modeline = false })
25
26
end
26
27
You can’t perform that action at this time.
0 commit comments