mirror of
https://github.com/vbrandl/dotfiles
synced 2024-11-23 00:13:49 +01:00
Update vim plugins
This commit is contained in:
parent
b062a1c03f
commit
9fff99c240
@ -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')
|
call plug#begin('~/.vim/plugged')
|
||||||
|
|
||||||
Plug 'vim-airline/vim-airline' | Plug 'vim-airline/vim-airline-themes'
|
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 'ryanoasis/vim-devicons' " icons
|
||||||
Plug 'ctrlpvim/ctrlp.vim' " fuzzy file finder
|
Plug 'ctrlpvim/ctrlp.vim' " fuzzy file finder
|
||||||
Plug 'neomake/neomake' " async linting and making
|
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 'sickill/vim-pasta' " context aware pasting
|
||||||
Plug 'junegunn/goyo.vim' " distraction free writing
|
Plug 'junegunn/goyo.vim' " distraction free writing
|
||||||
|
|
||||||
@ -42,7 +51,9 @@ Plug 'davidhalter/jedi-vim', { 'for': 'python' } " python autocomplete
|
|||||||
" Rust plugins
|
" Rust plugins
|
||||||
Plug 'racer-rust/vim-racer', { 'for': 'rust' } " rust autocomplete
|
Plug 'racer-rust/vim-racer', { 'for': 'rust' } " rust autocomplete
|
||||||
Plug 'rust-lang/rust.vim', { 'for': 'rust' } " rust syntax, error checking, etc
|
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
|
" LaTeX
|
||||||
Plug 'lervag/vimtex', { 'for': ['tex', 'plaintex'] }
|
Plug 'lervag/vimtex', { 'for': ['tex', 'plaintex'] }
|
||||||
|
Loading…
Reference in New Issue
Block a user