Skip to content

[Help needed] Some beginner's questions about "optional plugin" #823

Answered by wbthomason
hypghzy asked this question in Q&A
Discussion options

You must be logged in to vote

Welcome!

You should almost never need to mark a plugin as opt manually. packer will not load manually opt plugins; if you want them enabled, you have to packadd them yourself. The main reason that people do this is if they want some custom loading logic that packer doesn't support.

packer will implicitly make plugins opt if they use lazy-loading features. This is done to prevent them from being loaded until the lazy-load condition triggers. You do not need to manually mark a plugin opt to do this; just use one of the lazy-loading keywords in the plugin's specification.

Note that if you change the type of a plugin, you need to run PackerUpdate/PackerSync to move it to the correct directory…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@hypghzy
Comment options

@ThatOneOcto
Comment options

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

This discussion was converted from issue #822 on February 15, 2022 22:37.