Skip to content

How to alias config in packer.startup{} #443

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

You must be logged in to vote

Right now, your config is passing the result of the pcall to the config key. You want your config function to return a function that calls pcall as desired. However, you might run into trouble with this because string.dump does not allow upvalues. #402 will fix that shortcoming, or you can just have your config function return a string instead (which will be inserted verbatim).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bangedorrunt
Comment options

Answer selected by bangedorrunt
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