Skip to content

Optional plugins #229

Answered by wbthomason
horseinthesky asked this question in Q&A
Feb 21, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

But I could find the difference between them. Why should I install packer as opt plugin? Or in general, should I? The same is about start plugins.

If you haven't read :help packages, I'd suggest starting there. The short version is that start plugins are eagerly loaded, whereas opt plugins must be loaded with packadd. A large part of packer's job is handling the latter for you. In general, default to start, and use opt when you have some reason to lazy-load a plugin (e.g. it's only relevant for some filetypes, or imposes a high startup cost, etc.)

How can I achieve the same in packer?

The equivalent is packer's run key: https://github.com/wbthomason/packer.nvim#updateinstall-hooks

Is…

Replies: 1 comment 3 replies

Comment options

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

@wbthomason
Comment options

@horseinthesky
Comment options

Answer selected by wbthomason
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