Replies: 2 comments 1 reply
-
Thanks, this is an interesting idea. I'm a little bit hesitant to add this to That said, if this is something the community wants, I'm not completely opposed to it - my concern is just avoiding undue increases to |
Beta Was this translation helpful? Give feedback.
-
Thank you for your interest in the idea 😊. Your points are very valid. It would be great to add if a setup function would be the standard. I will look into posting this on Gitter! |
Beta Was this translation helpful? Give feedback.
-
Hi!
I've noticed that (almost all) packages written in lua can receive configuration via a
setup()
function. For example:My current setup is to first have packer's startup function in my init.lua and after that all
package.setup()
's. This is irritating when packages are deleted from the packer startup function. The configs remain, and nvim will start with errors. To fix this, these setup calls can be included in packer via theconfig
key:But doing this for every package gets quite explicit. It would be cool if packer had a keyword for this:
And then internally it would run
require(package).setup(setup_params)
. What do you think of this idea? I feel like many people can take advantage of having something like this included in packer.I hope I have explained my idea well enough, if questions remain, please ask them :)
Beta Was this translation helpful? Give feedback.
All reactions