-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugs.vim
More file actions
188 lines (141 loc) · 9.22 KB
/
plugs.vim
File metadata and controls
188 lines (141 loc) · 9.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
" ----------------------------------------------------------------------------
" Plugins
" ----------------------------------------------------------------------------
" Install new plugins
nnoremap <leader>pi :source $MYVIMRC<CR>:PlugInstall<CR>
" Configuration
if has("win32")
let g:vim_home_path = "~/vimfiles"
else
let g:vim_home_path = "~/.vim"
endif
" Specify a directory for plugins (for Neovim: ~/.local/share/nvim/plugged)
call plug#begin('~/.vim/plugged')
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
" == General ==
Plug 'airblade/vim-rooter' " Project root dir
Plug 'AndrewRadev/linediff.vim' " Line diffs
Plug 'Lokaltog/vim-easymotion' " Move around better
Plug 'Raimondi/delimitMate' " Autocomplete for punctuation
Plug 'airblade/vim-gitgutter' " Shows Git diff
Plug 'bling/vim-airline' " Powerline in Vimscript
Plug 'blueyed/vim-diminactive' " Dim inactive window (could be very slow)
Plug 'chrisbra/vim-diff-enhanced' " Smarter diffing
Plug 'christoomey/vim-tmux-navigator' " Doh! That's a Tmux split (no longer!)
Plug 'flazz/vim-colorschemes' " Nice syntax highlighting
Plug 'honza/vim-snippets' " Snippets
Plug 'junegunn/fzf.vim' " FZF plugin for Vim
Plug 'junegunn/rainbow_parentheses.vim' " Rainbow parentheses
Plug 'junegunn/seoul256.vim' " Colorscheme
Plug 'junegunn/vim-easy-align' " Aligning columns
Plug 'junegunn/vim-xmark', { 'do': 'make' } " Markdown
Plug 'lervag/vimtex', { 'for': 'tex' } " LaTeX
Plug 'ludovicchabant/vim-gutentags' " Manage tags
Plug 'MattesGroeger/vim-bookmarks' " Bookmarks
Plug 'mattn/gist-vim' " Create gists
Plug 'mikker/seoul256-iTerm' " Seoul iTerm
Plug 'mileszs/ack.vim' " Awk/Ag search
Plug 'mhinz/vim-startify' " Start screen
Plug 'neoclide/coc.nvim', {'branch': 'release'} " Autocomplete
Plug 'ntpeters/vim-better-whitespace' " Highlight whitespace
Plug 'powerline/fonts' " Powerline fonts (Sauce Code Powerline Regular)
Plug 'sheerun/vim-polyglot' " Syntax highlighting for languages
Plug 'tomtom/tcomment_vim' " Comment/uncomment
Plug 'tpope/vim-fugitive' " Git wrapper
Plug 'tpope/vim-rhubarb' " Gbrowse with hub
Plug 'tpope/vim-sleuth' " Git wrapper
Plug 'tpope/vim-surround' " Quickly surround words with symbols
Plug 'tweekmonster/startuptime.vim' " Vim profiler
Plug 'w0rp/ale' " Async lint engine
Plug 'wesQ3/vim-windowswap' " Swap Vim splits
" == Javascript ==
Plug 'douglascrockford/JSLint', { 'for': 'javascript' } " linting
Plug 'flowtype/vim-flow', { 'for': ['javascript', 'javascript.jsx'] } " Flow type checking
Plug 'MaxMEllon/vim-jsx-pretty', { 'for': ['javascript', 'javascript.jsx'] } " React
Plug 'pangloss/vim-javascript', { 'for': 'javascript' } " Vim & Javascript
" == GraphQL ==
Plug 'jparise/vim-graphql' " GraphQL
" == HTML ==
Plug 'Glench/Vim-Jinja2-Syntax', { 'for': 'html' } " Jinja2
Plug 'digitaltoad/vim-pug', { 'for': 'pug' } " Pug (Jade) templates
Plug 'htacg/tidy-html5', { 'do': 'make install', 'for': 'html' } " HTML5 syntax
Plug 'mattn/emmet-vim', { 'for': 'html' } " Expanding HTML abbreviations
Plug 'mustache/vim-mustache-handlebars', { 'for': 'handlebars' } " Mustache, Handlebars
" == CSS ==
Plug 'alampros/vim-styled-jsx', { 'for': ['javascript', 'javascript.jsx'] } " Highlight CSS colors
Plug 'ap/vim-css-color', { 'for': ['css', 'scss', 'javascript', 'javascript.jsx', 'less'] } " Highlight CSS colors
Plug 'groenewege/vim-less', { 'for': 'less' } " syntax highlighting for LESS
Plug 'wavded/vim-stylus', { 'for': 'styl' } " Stylus files
" == Ruby ==
Plug 'vim-ruby/vim-ruby', { 'for': 'ruby' } " Vim & Ruby
Plug 'zackhsi/sorbet-lsp', { 'for': 'ruby' } " Sorbet
" == Go ==
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } " Go language support
" Initialize plugin system
call plug#end()
" ---------------------------------------------------------------------------
" Plugin configs
" ---------------------------------------------------------------------------
source ~/.airline.vim
source ~/.ale.vim
source ~/.coc.vim
source ~/.easymotion.vim
source ~/.fzf.vim
source ~/.tags.vim
" ---------------------------------------------------------------------------
" Color scheme
" ---------------------------------------------------------------------------
colorscheme seoul256
let g:seoul256_background = 236
colo seoul256
"highlight OverLength ctermbg=red
highlight ColorColumn ctermbg=darkgray
highlight ExtraWhitespace ctermbg=red guibg=red
" ----------------------------------------------------------------------------
" Awk/Ag
" ----------------------------------------------------------------------------
if executable('ag')
let g:ackprg = 'ag --vimgrep'
endif
if executable('ack')
set grepprg=ack\ --nogroup\ --column\ --smart-case\ --nocolor\ --follow\ $*
set grepformat=%f:%l:%c:%m
endif
if executable('ag')
set grepprg=ag\ --nogroup\ --column\ --smart-case\ --nocolor\ --follow
set grepformat=%f:%l:%c:%m
endif
" ----------------------------------------------------------------------------
" Miscellaneous
" ----------------------------------------------------------------------------
"" indent guide
let g:indent_guides_guide_size = 1
let g:NERDTreeDirArrows = 0
"" vim diminactive
let g:diminactive_use_colorcolumn = 0
let g:diminactive_use_syntax = 1
"" vim fugitive
set diffopt+=vertical
let g:github_enterprise_urls = ['https://git.corp.stripe.com'] " for vim-rhubarb
"" EasyAlign
" Start interactive EasyAlign in visual mode (e.g. vipga)
nnoremap ga <Plug>(EasyAlign)
xmap ga <Plug>(EasyAlign)
"" polyglot
let g:polyglot_disabled = ['latex']
" vimtex
let g:vimtex_compiler_latexmk = {'callback' : 0}
let g:vimtex_fold_enabled=0
let g:matchup_matchparen_deferred = 1
"" emmet
let g:user_emmet_leader_key='<C-G>'
"" sorbet
if fnamemodify(getcwd(), ':p') == $HOME.'/stripe/pay-server/'
let g:ale_linters = {'ruby': ['sorbet-lsp']}
end
" Bind <leader>d to go-to-definition.
nnoremap <silent> <leader>d <Plug>(ale_go_to_definition)
"" flow
let g:javascript_plugin_flow = 1
"" startify
nnoremap <leader>c :SClose<CR>