diff --git a/.vimrc b/.vimrc index bcb22a2..a68991d 100644 --- a/.vimrc +++ b/.vimrc @@ -49,8 +49,23 @@ endif let g:airline#extensions#ale#enabled = 1 -" PLUGINS ============================= -if filereadable(expand("~/.vimrc.plug")) - source ~/.vimrc.plug +" AUTO INSTALL OF PLUG DEP ============================= +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 +" PLUGINS ============================= +call plug#begin('~/.vim/plugged') + +Plug 'scrooloose/nerdtree' " file tree +Plug 'tpope/vim-fugitive' " Fugitive Vim Github Wrapper +Plug 'vim-airline/vim-airline' " status line +Plug 'jiangmiao/auto-pairs' " Auto-complete pairs +Plug 'alvan/vim-closetag' " Auto-close HTML tags +Plug 'prabirshrestha/vim-lsp' +Plug 'dense-analysis/ale' + +call plug#end() +