Skip to content

Trouble using packer_plugins global #196

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

You must be logged in to vote

I think this is probably an issue regarding startup sourcing order. packer_compiled is in plugin/ (by default), which gets sourced after your init.vim. So, if you're doing these checks in your init.vim, packer_plugins doesn't exist yet. (you can see more on startup order with :help startup)

There are maybe two ways to deal with this. Option one is to move this code to a file in plugin/ that gets sourced after packer_compiled. Option two is to configure packer to put the compiled file somewhere else and manually source it in your init.vim before you run this code.

Replies: 1 comment 7 replies

Comment options

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

@strayer
Comment options

@wbthomason
Comment options

@strayer
Comment options

@wbthomason
Comment options

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