From 82212af82e2d9cec3422a217fc6f093adde0b937 Mon Sep 17 00:00:00 2001 From: jdhao Date: Wed, 20 Oct 2021 21:53:28 +0800 Subject: fix package root directory issue Expose a new global variable package_home. --- lua/plugins.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/plugins.lua b/lua/plugins.lua index 9c41f6d..b576454 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -1,7 +1,8 @@ local utils = require("utils") local fn = vim.fn -local packer_install_dir = fn.stdpath("data") .. "/site/pack/packer/opt/packer.nvim" +vim.g.package_home = fn.stdpath("data") .. "/site/pack/packer/" +local packer_install_dir = vim.g.package_home .. "/opt/packer.nvim" local plug_url_format = "" if vim.g.is_linux then -- cgit v1.2.3