-
Hi, Is there any solution that install packer and other plugins in the specified dir? just like Dein: set runtimepath+= Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
nanotee
Apr 22, 2021
Replies: 1 comment 1 reply
-
I believe the 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 vim.o.packpath = vim.o.packpath .. ',' .. vim.fn.stdpath('config') .. '/packer' -- without "/pack" |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
wbthomason
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I believe the
package_root
option is what you're looking for (see:help packer-configuration
):You'll have to add the string to
packpath
as well: