Skip to content

Beginner Questions #30

Answered by mrcjkb
damccull asked this question in Q&A
Jun 18, 2024 · 3 comments · 9 replies
Discussion options

You must be logged in to vote

Hey 👋

How are the files in nvim/plugin actually loaded or included? Is this some default setting somewhere in nvim that I'm missing? I don't see anything in the provided init.lua that explicitly loads them.

See

Or is it just they all load at startup?

With this template, yes. I'm not an advocate for lazy-loading, as this should be the plugin authors' responsibility, not the users'.
If you want a lazy.nvim-like API to implement lazy-loading, which is agnostic of your plugin manager, I have recently released lz.n.
But I'm not sure if I want to include it in this template yet.

Why do plugin configs in nvim/plugin load and error out if the plugin isn't l…

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by mrcjkb
Comment options

You must be logged in to vote
9 replies
@mrcjkb
Comment options

@damccull
Comment options

@mrcjkb
Comment options

@damccull
Comment options

@mrcjkb
Comment options

Comment options

You must be logged in to vote
0 replies
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