1
0
mirror of https://github.com/vbrandl/dotfiles synced 2024-11-22 16:03:50 +01:00

Update vim plugins

This commit is contained in:
Valentin Brandl 2017-04-12 15:29:38 +02:00
parent b062a1c03f
commit 9fff99c240
Signed by: vbrandl
GPG Key ID: CAD4DA1A789125F9

View File

@ -1,3 +1,12 @@
function! Has_tmux()
return $TMUX != ""
endfunction
function! Cond(cond, ...)
let opts = get(a:000, 0, {})
return a:cond ? opts : extend(opts, { 'on': [], 'for': [] })
endfunction
call plug#begin('~/.vim/plugged')
Plug 'vim-airline/vim-airline' | Plug 'vim-airline/vim-airline-themes'
@ -30,7 +39,7 @@ Plug 'Xuyuanp/nerdtree-git-plugin', { 'on': ['NERDTreeToggle', 'NERDTreeFind'] }
Plug 'ryanoasis/vim-devicons' " icons
Plug 'ctrlpvim/ctrlp.vim' " fuzzy file finder
Plug 'neomake/neomake' " async linting and making
Plug 'benmills/vimux' " tmux support
Plug 'benmills/vimux', Cond(Has_tmux()) " tmux support
Plug 'sickill/vim-pasta' " context aware pasting
Plug 'junegunn/goyo.vim' " distraction free writing
@ -42,7 +51,9 @@ Plug 'davidhalter/jedi-vim', { 'for': 'python' } " python autocomplete
" Rust plugins
Plug 'racer-rust/vim-racer', { 'for': 'rust' } " rust autocomplete
Plug 'rust-lang/rust.vim', { 'for': 'rust' } " rust syntax, error checking, etc
Plug 'jtdowney/vimux-cargo', { 'for': 'rust' } " run cargo in tmux using vimux
if Has_tmux()
Plug 'jtdowney/vimux-cargo', { 'for': 'rust' } " run cargo in tmux using vimux
endif
" LaTeX
Plug 'lervag/vimtex', { 'for': ['tex', 'plaintex'] }