6852fb19e97c9da08ecb225163bcc13573a8c285
[vimconf.git] / plugins.vim
1 function! Cond(cond, ...)
2 let opts = get(a:000, 0, {})
3 return a:cond ? opts : extend(opts, { 'on': [], 'for': [] })
4 endfunction
5
6 Plug 'mhinz/vim-startify'
7
8 Plug 'vim-airline/vim-airline'
9 Plug 'gruvbox-community/gruvbox'
10
11 Plug 'benknoble/vim-auto-origami'
12 " Prevent slow foling update, e.g., for vimtex
13 Plug 'Konfekt/FastFold'
14
15 Plug 'scrooloose/nerdcommenter'
16
17 Plug 'joom/latex-unicoder.vim', {'on': '<Plug>Unicoder'}
18
19 Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'}
20 Plug 'ryanoasis/vim-devicons', Cond(g:enable_plugin_devicons)
21
22 Plug 'Konfekt/vim-DetectSpellLang', {'do': 'spell'}
23 Plug 'roryokane/detectindent'
24
25 " This plugin cannot be conditionally loaded, see github issue #18
26 Plug 'derekwyatt/vim-fswitch' ", {'for': ['c', 'cpp', 'objc']}
27
28 Plug 'godlygeek/tabular'
29 Plug 'junegunn/vim-easy-align'
30
31 Plug 'thinca/vim-fontzoom'
32
33 Plug 'vim-scripts/loremipsum', {'on': 'Loremipsum'}
34
35 Plug 'lambdalisue/vim-manpager', {'on': 'MANPAGER'}
36
37 Plug 'https://gitlab.com/dbeniamine/vim-mail'
38
39 Plug 'dstein64/vim-startuptime'
40
41 " Make . more useful after a plugin map
42 Plug 'tpope/vim-repeat'
43
44 Plug 'flwyd/vim-conjoin'
45
46 if $USER != "root"
47 source ~/.vim/plugins-noroot.vim
48 endif
49
50 if filereadable($HOME . '/.vim/plugins-local.vim')
51 source ~/.vim/plugins-local.vim
52 endif