Optional plugins #229
-
Hello.
How can I achieve the same in packer?
and then in my setup.lua I have
But whathever NVIM 0.4.3 or 0.5 I run it always loads packer (which in turn loads lsp etc.)
Is there a way to achieve what I want - packer only for NVIM 0.5? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
If you haven't read
The equivalent is
Hmm, not super easily. The problem is that I hope this helps! |
Beta Was this translation helpful? Give feedback.
If you haven't read
:help packages
, I'd suggest starting there. The short version is thatstart
plugins are eagerly loaded, whereasopt
plugins must be loaded withpackadd
. A large part ofpacker
's job is handling the latter for you. In general, default tostart
, and useopt
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.)The equivalent is
packer
'srun
key: https://github.com/wbthomason/packer.nvim#updateinstall-hooks