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

44 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")
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 completion
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
" 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-07-23 16:08:03 +00:00
" Python
Plug 'neomake/neomake'
Plug 'zchee/deoplete-jedi'
" 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'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
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"
2021-07-23 16:08:03 +00:00
execute "source ".plugins_rc_dir."/python.vim"