Skip to content

Confused about config = on new plugins #506

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

You must be logged in to vote

This is a reasonable question - partially, the flow you used is a bit different than the usual, and partially, config doesn't do quite what you think (though perhaps this should change).

Usually, for a new plugin install, I would

  1. Write the plugin spec
  2. Load the plugin specification file (restarting Neovim if I have to because of Lua's module caching)
  3. Run PackerSync to first clone the plugin and then generate (and source) the compiled file

In this case, everything goes "as expected". I'm guessing that you probably ran PackerCompile first, which generated an invalid compiled file because the plugin wasn't installed? (that said, the try_loadstring function we use in packer_compiled should h…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@wbthomason
Comment options

@florentc
Comment options

@wbthomason
Comment options

@florentc
Comment options

@wbthomason
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