mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
chore(nvim): add plugin section with auto-install of vim-plug
This commit is contained in:
@@ -183,3 +183,19 @@ function! ToggleWrap()
|
|||||||
setlocal display+=lastline
|
setlocal display+=lastline
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
|
" *** *** *** Plugins *** *** ***
|
||||||
|
" *******************************
|
||||||
|
|
||||||
|
" Automatically install vim-plug
|
||||||
|
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
|
||||||
|
if empty(glob(data_dir . '/autoload/plug.vim'))
|
||||||
|
silent execute '!curl -fLo ' . data_dir . '/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
||||||
|
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
||||||
|
endif
|
||||||
|
|
||||||
|
call plug#begin(data_dir . '/plugins')
|
||||||
|
|
||||||
|
call plug#end()
|
||||||
|
doautocmd User PlugLoaded
|
||||||
|
|||||||
Reference in New Issue
Block a user