Confused about config =
on new plugins
#506
-
Hello, I am confused about how to use packer in the following case: Starting from an empty configuration: require('packer').startup(function()
use 'wbthomason/packer.nvim'
end I want to use a new plugin require('packer').startup(function()
use 'wbthomason/packer.nvim'
use {
'theauthor/theplugin',
config = require('theplugin').setup { ... }
}
end I need to source the modified file or restart nvim before I can run I have to remove Therefore, I don't get the point of the Am I missing something? Thank you for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
This is a reasonable question - partially, the flow you used is a bit different than the usual, and partially, Usually, for a new plugin install, I would
In this case, everything goes "as expected". I'm guessing that you probably ran The other bit of this is that, right now, |
Beta Was this translation helpful? Give feedback.
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
PackerSync
to first clone the plugin and then generate (and source) the compiled fileIn 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, thetry_loadstring
function we use inpacker_compiled
should h…