1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

fix package root directory issue

Expose a new global variable package_home.
This commit is contained in:
jdhao 2021-10-20 21:53:28 +08:00
parent 0477364023
commit 82212af82e
2 changed files with 3 additions and 2 deletions

View File

@ -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))
"}}

View File

@ -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