dotfiles/home/.config/nvim/rc/plugins.vim

43 lines
1.4 KiB
VimL
Raw Normal View History

2021-07-23 16:08:03 +00:00
" 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")
2021-09-25 00:43:22 +00:00
echo "Downloading junegunn/vim-plug to manage plugins..."
2021-07-23 16:08:03 +00:00
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')
2021-09-25 00:43:22 +00:00
autocmd VimEnter * PlugInstall
2021-07-23 16:08:03 +00:00
endif
" Plug.vim plugin list
call plug#begin(config_dir."/plugged")
" Code completion
Plug 'neoclide/coc.nvim', {'branch': 'release'}
2021-07-23 16:08:03 +00:00
" Themes
Plug 'tomasiser/vim-code-dark'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'ryanoasis/vim-devicons'
2021-08-15 13:24:12 +00:00
Plug 'airblade/vim-gitgutter'
2021-09-25 00:43:22 +00:00
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
2021-07-23 16:08:03 +00:00
" Misc
2021-08-15 13:24:12 +00:00
Plug 'dhruvasagar/vim-table-mode'
Plug 'vimwiki/vimwiki'
2021-07-23 16:08:03 +00:00
Plug 'wakatime/vim-wakatime'
Plug 'preservim/nerdcommenter'
Plug 'preservim/nerdtree'
2021-09-25 00:43:22 +00:00
Plug 'tmhedberg/SimpylFold'
2021-07-23 16:08:03 +00:00
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"
2021-08-15 13:24:12 +00:00
execute "source ".plugins_rc_dir."/vimwiki.vim"
execute "source ".plugins_rc_dir."/coc.vim"
"execute "source ".plugins_rc_dir."/python.vim"