Why are rocks are configured before being loaded? #7
-
I was reading over the source code and was just curious why |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey 👋 This is because it's more in line with Neovim's built-in Typically, there are two types of plugins:
Requiring configuration after initialization would be a really bad idea (and I haven't seen anyone do it), because it would not work with Neovim's built-in loading mechanism (and there probably isn't a use case for it). rocks-lazy.nvim's loading mechanisms occur after Neovim's initialization startup. Then, after configuration, You're right, the See also: #4 Footnotes
|
Beta Was this translation helpful? Give feedback.
Hey 👋
This is because it's more in line with Neovim's built-in
:h initialization-startup
.Neovim sources your
init.lua
first, and then loads plugins later.Typically, there are two types of plugins:
setup
functionRequiring configuration after initialization would be a really bad idea (and I haven't seen anyone do it), because it would not work with Neovim's built-in loading mechanism (and there probably isn't a use case for it).
rocks-lazy.nvim's loading mechanisms occur after Neovim's initialization startup.
Calling
packadd!
with a bang (!
) m…