Skip to content

Why are rocks are configured before being loaded? #7

Answered by mrcjkb
austinliuigi asked this question in Q&A
Discussion options

You must be logged in to vote

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:

  • Those that allow optional configuration before automatic initialization
  • Those that force you to configure and initialize at the same time with a setup function

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.
Calling packadd! with a bang (!) m…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by austinliuigi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #6 on July 08, 2024 21:34.