move plugs to in file

This commit is contained in:
Triston Armstrong 2024-11-10 10:46:10 +07:00
parent 207ec82453
commit 446243c66f
Signed by: tristonarmstrong
GPG Key ID: A23B48AE45EB6EFE

21
.vimrc
View File

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