Skip to content

I think I'm not fully understanding the LazyLoad event key #1020

Answered by abeldekat
plongitudes asked this question in Q&A
Discussion options

You must be logged in to vote

... but I'm having trouble seeing from the two commits how they're related

The on_load function in lazyvim.util uses the LazyLoad event broadcasted by lazy.nvim, introduced in this commit: LazyLoad

... Am I off-base and 'user events' are different than event from the plugin spec...

The User Events section describes all user events triggered by lazy.nvim during its various stages of processing.
Most of those events, in my opinion, are not primarily intended to be used in the event property of your plugin spec. For example, it makes no sense to lazy-load your plugin on the User LazyLog event.

VeryLazy though, is most useful in the event property of your specs.
Lazy.nvim even translates e…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@plongitudes
Comment options

Comment options

You must be logged in to vote
3 replies
@plongitudes
Comment options

@abeldekat
Comment options

Answer selected by plongitudes
@plongitudes
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants