1
0
mirror of https://github.com/vbrandl/dotfiles synced 2024-11-23 00:13:49 +01:00
dotfiles/editors/vim/plugins.vim

63 lines
2.1 KiB
VimL
Raw Normal View History

2017-04-12 15:29:38 +02:00
function! Has_tmux()
return $TMUX != ""
endfunction
function! Cond(cond, ...)
let opts = get(a:000, 0, {})
return a:cond ? opts : extend(opts, { 'on': [], 'for': [] })
endfunction
2017-04-12 14:51:01 +02:00
call plug#begin('~/.vim/plugged')
2017-04-12 14:51:01 +02:00
Plug 'vim-airline/vim-airline' | Plug 'vim-airline/vim-airline-themes'
" colorschemes
" Plug 'dracula/vim'
2017-04-12 14:51:01 +02:00
Plug 'joshdick/onedark.vim'
2017-04-12 14:51:01 +02:00
Plug 'editorconfig/editorconfig-vim'
" Notetaking
2017-04-12 14:51:01 +02:00
Plug 'xolox/vim-misc'
Plug 'xolox/vim-notes'
Plug 'Rykka/riv.vim', { 'for': 'rst' } " reStructuredText
Plug 'cespare/vim-toml', { 'for': 'toml' } " toml highlighting
Plug 'ervandew/supertab' " simple autocomplete
Plug 'tpope/vim-commentary' " (un)comment
Plug 'tpope/vim-surround' " handle surroundings
Plug 'tpope/vim-repeat' " make plugin commands repeatable
Plug 'tpope/vim-dispatch' " dispatch into tmux panes
Plug 'vim-scripts/ReplaceWithRegister'
Plug 'mattn/gist-vim' | Plug 'mattn/webapi-vim' " create gist from within vim
Plug 'Raimondi/delimitMate' " autoclose quotes and brackets
Plug 'tpope/vim-fugitive' " awesome git plugin
Plug 'scrooloose/nerdtree', { 'on': ['NERDTreeToggle', 'NERDTreeFind'] }
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
2017-04-12 15:29:38 +02:00
Plug 'benmills/vimux', Cond(Has_tmux()) " tmux support
2017-04-12 14:51:01 +02:00
Plug 'sickill/vim-pasta' " context aware pasting
Plug 'junegunn/goyo.vim' " distraction free writing
Plug 'elzr/vim-json', { 'for': 'json' } " better JSON support
" Python
Plug 'davidhalter/jedi-vim', { 'for': 'python' } " python autocomplete
" Rust plugins
2017-04-12 14:51:01 +02:00
Plug 'racer-rust/vim-racer', { 'for': 'rust' } " rust autocomplete
Plug 'rust-lang/rust.vim', { 'for': 'rust' } " rust syntax, error checking, etc
2017-04-12 15:29:38 +02:00
if Has_tmux()
Plug 'jtdowney/vimux-cargo', { 'for': 'rust' } " run cargo in tmux using vimux
endif
" LaTeX
2017-04-12 14:51:01 +02:00
Plug 'lervag/vimtex', { 'for': ['tex', 'plaintex'] }
2017-04-12 14:51:01 +02:00
call plug#end()
" vim: set filetype=vim ts=4 sw=4 tw=120 noet :