mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-16 00:31:31 +01:00
92 lines
2.9 KiB
VimL
92 lines
2.9 KiB
VimL
" Install vim-plug if not installed already (requires curl)
|
|
if empty(glob('~/.vim/autoload/plug.vim'))
|
|
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
|
|
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
|
autocmd VimEnter * PlugInstall --sync | source ~/.vimrc
|
|
endif
|
|
|
|
" Plugins
|
|
call plug#begin('~/.vim/vim-plug')
|
|
" Basic vim config
|
|
Plug 'tpope/vim-sensible'
|
|
" Colorscheme
|
|
Plug 'https://github.com/morhetz/gruvbox'
|
|
"Plug 'kristijanhusak/vim-hybrid-material'
|
|
"Plug 'https://github.com/rafi/awesome-vim-colorschemes'
|
|
|
|
" Csv files 🤦"
|
|
Plug 'https://github.com/mechatroner/rainbow_csv', { 'for': 'csv' }
|
|
|
|
" Asynchronous Linting Engine
|
|
Plug 'https://github.com/dense-analysis/ale'
|
|
" Git
|
|
Plug 'https://github.com/tpope/vim-fugitive'
|
|
" Comment shit easily
|
|
Plug 'https://github.com/tpope/vim-commentary'
|
|
" Browse file system
|
|
Plug 'https://github.com/scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
|
|
" status line
|
|
Plug 'vim-airline/vim-airline'
|
|
Plug 'vim-airline/vim-airline-themes'
|
|
" Tags integration
|
|
Plug 'https://github.com/preservim/tagbar'
|
|
" Insert parentheses in pairs
|
|
Plug 'https://github.com/jiangmiao/auto-pairs'
|
|
Plug 'https://github.com/amix/open_file_under_cursor.vim'
|
|
" Multi cursor
|
|
Plug 'https://github.com/mg979/vim-visual-multi'
|
|
" Yank history
|
|
Plug 'https://github.com/maxbrunsfeld/vim-yankstack'
|
|
" Mark indentation level
|
|
Plug 'https://github.com/nathanaelkane/vim-indent-guides'
|
|
|
|
" Meson + Ninja
|
|
Plug 'https://github.com/igankevich/mesonic'
|
|
|
|
" fzf
|
|
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
|
Plug 'junegunn/fzf.vim'
|
|
" Open tags with fzf's :Tags
|
|
Plug 'https://github.com/ludovicchabant/vim-gutentags.git'
|
|
|
|
" snippets
|
|
if has("python3")
|
|
Plug 'https://github.com/SirVer/ultisnips'
|
|
Plug 'https://github.com/honza/vim-snippets'
|
|
endif
|
|
|
|
" Git gutter line
|
|
Plug 'https://github.com/airblade/vim-gitgutter'
|
|
" Zero distractions
|
|
Plug 'https://github.com/junegunn/goyo.vim'
|
|
|
|
" Highlight lines not covered by tests
|
|
Plug 'https://github.com/mgedmin/coverage-highlight.vim'
|
|
|
|
"Languages
|
|
Plug 'https://github.com/bfrg/vim-cpp-modern', {'for': 'cpp'}
|
|
Plug 'https://github.com/rust-lang/rust.vim', {'for': 'rust'}
|
|
Plug 'https://github.com/vim-scripts/nginx.vim', {'for': 'nginx'}
|
|
Plug 'https://github.com/plasticboy/vim-markdown', {'for': 'markdown'}
|
|
Plug 'https://github.com/cespare/vim-toml', {'for': 'toml'}
|
|
Plug 'https://github.com/vim-scripts/iptables', {'for': 'iptables'}
|
|
Plug 'https://github.com/leafoftree/vim-vue-plugin', {'for': 'vue'}
|
|
Plug 'https://github.com/hashivim/vim-terraform', {'for': 'terraform'}
|
|
Plug 'https://github.com/fatih/vim-go', {'for': 'go'}
|
|
|
|
" Plug 'epheien/termdbg'
|
|
|
|
Plug 'https://github.com/alfredodeza/pytest.vim', {'for': 'python'}
|
|
|
|
" No RGB, no party
|
|
let vim_razer = expand('~/projects_razer/vim-razer')
|
|
if isdirectory(vim_razer)
|
|
Plug vim_razer
|
|
endif
|
|
call plug#end()
|
|
|
|
" Install plugins if missing
|
|
if ! isdirectory(expand('~/.vim/vim-plug'))
|
|
PlugInstall
|
|
endif
|