You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm relatively new to neovim and lazy.nvim is my first plugin manager.
I saw "💪 Async execution for improved performance" in the list of features, and now I'm curious what exactly is asynchronous in lazy.nvim and what is not.
I'm sure about plugin downloads, they should be asynchronous.
But I wanted to know about the following things:
Are init() functions executed asynchronously?
What about opts(), config()?
Are plugins loaded asynchronously (especially ones at startup)?
If not, is it even possible to load them in parallel?
Does lazy.nvim do asynchronous execution in a single thread, or maybe there is a thread pool?
What does concurrency(number limit the maximum amount of concurrent tasks) mean in ⚙️ Configuration? Is it the thread pool size? (Can thread pool size be modified?)
What lower level library or API does lazy.nvim use for the async stuff? libluv? vim.schedule()?
The more detailed is the answer, the better. Thanks in advance.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm relatively new to neovim and lazy.nvim is my first plugin manager.
I saw "💪 Async execution for improved performance" in the list of features, and now I'm curious what exactly is asynchronous in lazy.nvim and what is not.
I'm sure about plugin downloads, they should be asynchronous.
But I wanted to know about the following things:
Are
init()
functions executed asynchronously?What about
opts()
,config()
?Are plugins loaded asynchronously (especially ones at startup)?
If not, is it even possible to load them in parallel?
Does lazy.nvim do asynchronous execution in a single thread, or maybe there is a thread pool?
What does concurrency(number limit the maximum amount of concurrent tasks) mean in ⚙️ Configuration? Is it the thread pool size? (Can thread pool size be modified?)
What lower level library or API does lazy.nvim use for the async stuff?
libluv
?vim.schedule()
?The more detailed is the answer, the better. Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions