X-Git-Url: https://git.sthu.org/?p=vimconf.git;a=blobdiff_plain;f=plugins.vim;h=0e25290ce4ca3a7e9adceeb7c04b6f42a88b7bd1;hp=201ed86e5e95e69887730777a703d937b90b9bdf;hb=1efe691122790ce96466f1a05fc65de61b91c3cf;hpb=b676a1f3ed6081394e92a1931e182c18ee74d3e1 diff --git a/plugins.vim b/plugins.vim index 201ed86..0e25290 100644 --- a/plugins.vim +++ b/plugins.vim @@ -1,3 +1,8 @@ +function! Cond(cond, ...) + let opts = get(a:000, 0, {}) + return a:cond ? opts : extend(opts, { 'on': [], 'for': [] }) +endfunction + Plug 'mhinz/vim-startify' Plug 'vim-airline/vim-airline' @@ -15,6 +20,8 @@ Plug 'scrooloose/nerdcommenter' Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'} Plug 'Xuyuanp/nerdtree-git-plugin', {'on': 'NERDTreeToggle'} +Plug 'ryanoasis/vim-devicons', Cond(g:enable_plugin_devicons) + Plug 'neomake/neomake' Plug 'majutsushi/tagbar', {'on': 'TagbarToggle'} @@ -28,14 +35,14 @@ Plug 'cakebaker/scss-syntax.vim', {'for': 'scss'} Plug 'hail2u/vim-css3-syntax', {'for': ['scss', 'css']} Plug 'ap/vim-css-color', {'for': ['scss', 'css']} -Plug 'tpope/vim-ragtag', {'for': ['html', 'xml']} +Plug 'tpope/vim-ragtag' Plug 'lervag/vimtex', {'for': 'tex'} if has('nvim') Plug 'Shougo/deoplete.nvim', {'do': ':UpdateRemotePlugins' } else - Plug 'Shougo/deoplete.nvim', {'do': ':UpdateRemotePlugins' } + Plug 'Shougo/deoplete.nvim' Plug 'roxma/nvim-yarp' Plug 'roxma/vim-hug-neovim-rpc' endif @@ -45,12 +52,17 @@ Plug 'Shougo/neosnippet-snippets' Plug 'tpope/vim-speeddating' Plug 'jceb/vim-orgmode', {'for': ['org']} +Plug 'vimwiki/vimwiki' +Plug 'mattn/calendar-vim' Plug 'Konfekt/vim-DetectSpellLang', {'do': 'spell'} -Plug 'ciaranm/detectindent' +Plug 'roryokane/detectindent' Plug 'derekwyatt/vim-fswitch', {'for': ['c', 'cpp', 'objc']} Plug 'ludovicchabant/vim-gutentags', {'for': ['c', 'cpp', 'objc']} +"Plug 'vim-scripts/Conque-GDB', {'for': ['c', 'cpp', 'objc']} + +Plug 'artur-shaik/vim-javacomplete2', {'for': 'java'} Plug 'godlygeek/tabular' Plug 'junegunn/vim-easy-align'