Skip to content

custom install dir #309

Answered by nanotee
R08UST asked this question in Q&A
Apr 21, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I believe the package_root option is what you're looking for (see :help packer-configuration):

local packer = require('packer')

packer.startup{function(use)
  -- plugin specification goes here
end,
config = {
  -- The root has to be a directory named "pack"
  package_root = vim.fn.stdpath('config') .. '/packer/pack',
}}

You'll have to add the string to packpath as well:

vim.o.packpath = vim.o.packpath .. ',' .. vim.fn.stdpath('config') .. '/packer' -- without "/pack"

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@R08UST
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