mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-28 22:14:34 +00:00
44 lines
1.4 KiB
VimL
44 lines
1.4 KiB
VimL
" This file handles plugin management with plug.vim
|
|
" It contains an automatic first-time installer for plug.vim and plugins
|
|
" It also sources plugin specific config files
|
|
|
|
" Install plugins automatically
|
|
if ! filereadable(config_dir."/autoload/plug.vim")
|
|
echo "Downloading junegunn/vim-plug to manage plugins..."
|
|
let x = system('mkdir -p '.config_dir.'/autoload')
|
|
let x = system('curl https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim > '.config_dir.'/autoload/plug.vim')
|
|
autocmd VimEnter * PlugInstall
|
|
endif
|
|
|
|
" Plug.vim plugin list
|
|
call plug#begin(config_dir."/plugged")
|
|
|
|
" Code helpers
|
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
|
Plug 'airblade/vim-gitgutter'
|
|
Plug 'dhruvasagar/vim-table-mode'
|
|
Plug 'preservim/nerdcommenter'
|
|
Plug 'tmhedberg/SimpylFold'
|
|
" Themes
|
|
Plug 'tomasiser/vim-code-dark'
|
|
Plug 'vim-airline/vim-airline'
|
|
Plug 'vim-airline/vim-airline-themes'
|
|
Plug 'ryanoasis/vim-devicons'
|
|
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
|
|
" Misc
|
|
Plug 'vimwiki/vimwiki'
|
|
Plug 'wakatime/vim-wakatime'
|
|
Plug 'preservim/nerdtree'
|
|
Plug 'mhinz/vim-startify'
|
|
|
|
call plug#end()
|
|
|
|
|
|
" Source more plugin-specific configuration files from here
|
|
let plugins_rc_dir = rc_dir."/plugins.d"
|
|
execute "source ".plugins_rc_dir."/airline.vim"
|
|
execute "source ".plugins_rc_dir."/nerdtree.vim"
|
|
execute "source ".plugins_rc_dir."/vimwiki.vim"
|
|
execute "source ".plugins_rc_dir."/coc.vim"
|
|
"execute "source ".plugins_rc_dir."/python.vim"
|