aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-02-27 21:55:47 +0800
committerjdhao <jdhao@hotmail.com>2021-02-27 21:55:47 +0800
commit92d3609d81821f3d22ba7f4665a9d706deee904c (patch)
treed39d8e1892334db782f72f62675c7eefdc7cac41 /core
parent8103d87ae6e92eae061fee130bb136d754700d3e (diff)
Update vim-plug setting
vim-plug reads the variable g:plug_home and will set its as the directory to install plugins. So we do not need to invent a new variable for this purpose.
Diffstat (limited to 'core')
-rw-r--r--core/plugins.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/plugins.vim b/core/plugins.vim
index e5cda06..432a4c4 100644
--- a/core/plugins.vim
+++ b/core/plugins.vim
@@ -2,9 +2,9 @@ scriptencoding utf-8
"{ Plugin installation
"{{ Vim-plug related settings.
" The root directory to install all plugins.
-let g:plugin_home=expand(stdpath('data') . '/plugged')
+let g:plug_home=expand(stdpath('data') . '/plugged')
-if empty(readdir(g:plugin_home))
+if empty(readdir(g:plug_home))
augroup plug_init
autocmd!
autocmd VimEnter * PlugInstall --sync | quit |source $MYVIMRC
@@ -13,7 +13,7 @@ endif
"}}
"{{ Autocompletion related plugins
-call plug#begin(g:plugin_home)
+call plug#begin()
" Auto-completion
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
" Language Server Protocol client
@@ -482,7 +482,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:plugin_home))
+command! -nargs=0 StartVlime call jobstart(printf("sbcl --load %s/vlime/lisp/start-vlime.lisp", g:plug_home))
"}}