aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-10-20 21:53:28 +0800
committerjdhao <jdhao@hotmail.com>2021-10-20 21:53:28 +0800
commit82212af82e2d9cec3422a217fc6f093adde0b937 (patch)
tree812a5451217536040b6d99068c591133fc533bd6
parent04773640232a3e39fb1f2914c5e0ee6a2e1e33ba (diff)
fix package root directory issue
Expose a new global variable package_home.
-rw-r--r--core/plugins.vim2
-rw-r--r--lua/plugins.lua3
2 files changed, 3 insertions, 2 deletions
diff --git a/core/plugins.vim b/core/plugins.vim
index 07515d9..32ef861 100644
--- a/core/plugins.vim
+++ b/core/plugins.vim
@@ -43,7 +43,7 @@ let g:semshi#mark_selected_nodes=0
let g:semshi#error_sign=v:false
"""""""""""""""""""""""""" vlime settings """"""""""""""""""""""""""""""""
-command! -nargs=0 StartVlime call jobstart(printf("sbcl --load %s/vlime/lisp/start-vlime.lisp", g:plug_home))
+command! -nargs=0 StartVlime call jobstart(printf("sbcl --load %s/vlime/lisp/start-vlime.lisp", g:package_home))
"}}
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