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

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.
This commit is contained in:
jdhao 2021-02-27 21:55:47 +08:00
parent 8103d87ae6
commit 92d3609d81

View File

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