mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
fix(profiler): startup opts
This commit is contained in:
parent
93b254d658
commit
85f51320b2
1 changed files with 1 additions and 0 deletions
|
@ -347,6 +347,7 @@ end
|
||||||
-- Start the profiler on startup, and stop it after the event has been triggered.
|
-- Start the profiler on startup, and stop it after the event has been triggered.
|
||||||
---@param opts snacks.profiler.Config
|
---@param opts snacks.profiler.Config
|
||||||
function M.startup(opts)
|
function M.startup(opts)
|
||||||
|
M.config = Snacks.config.get("profiler", defaults, opts)
|
||||||
local event, pattern = M.config.startup.event or "VimEnter", M.config.startup.pattern
|
local event, pattern = M.config.startup.event or "VimEnter", M.config.startup.pattern
|
||||||
if event == "VeryLazy" then
|
if event == "VeryLazy" then
|
||||||
event, pattern = "User", event
|
event, pattern = "User", event
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue