mirror of
https://github.com/vbrandl/dotfiles
synced 2024-11-23 00:13:49 +01:00
63 lines
2.1 KiB
VimL
63 lines
2.1 KiB
VimL
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'
|
|
|
|
" colorschemes
|
|
" Plug 'dracula/vim'
|
|
Plug 'joshdick/onedark.vim'
|
|
|
|
Plug 'editorconfig/editorconfig-vim'
|
|
|
|
" Notetaking
|
|
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
|
|
Plug 'benmills/vimux', Cond(Has_tmux()) " tmux support
|
|
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
|
|
Plug 'racer-rust/vim-racer', { 'for': 'rust' } " rust autocomplete
|
|
Plug 'rust-lang/rust.vim', { 'for': 'rust' } " rust syntax, error checking, etc
|
|
if Has_tmux()
|
|
Plug 'jtdowney/vimux-cargo', { 'for': 'rust' } " run cargo in tmux using vimux
|
|
endif
|
|
|
|
" LaTeX
|
|
Plug 'lervag/vimtex', { 'for': ['tex', 'plaintex'] }
|
|
|
|
call plug#end()
|
|
" vim: set filetype=vim ts=4 sw=4 tw=120 noet :
|