-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugins.vim
430 lines (327 loc) · 7.56 KB
/
plugins.vim
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
"
" Global Configuration
"
" Map space to leader.
let mapleader = "\<Space>"
let maplocalleader = "\\"
" Set Python host.
if empty($VIM_PYTHON)
let g:python_host_prog = '/bin/python2'
else
let g:python_host_prog = $VIM_PYTHON
endif
" Set Python 3 host.
if empty($VIM_PYTHON3)
let g:python3_host_prog = '/bin/python3'
else
let g:python3_host_prog = $VIM_PYTHON3
endif
" Libraries
Plug 'konfekt/fastfold'
Plug 'tpope/vim-repeat'
" Sensible Defaults
Plug 'tpope/vim-sensible'
" EditorConfig
Plug 'editorconfig/editorconfig-vim'
" Prompt and Statusline
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'edkolev/promptline.vim'
Plug 'edkolev/tmuxline.vim'
" Disable promptline and tmuxline extensions.
let g:airline#extensions#tmuxline#enabled = 0
let g:airline#extensions#promptline#enabled = 0
" Themes and Colors
Plug 'vimpostor/vim-lumen'
Plug 'chriskempson/base16-vim'
Plug 'altercation/vim-colors-solarized'
Plug 'tomasr/molokai'
Plug 'jnurmine/zenburn'
Plug 'rakr/vim-one'
Plug 'joshdick/onedark.vim'
Plug 'mhartington/oceanic-next'
"
" Editor
"
" Syntax
Plug 'cohama/lexima.vim'
Plug 'alvan/vim-closetag'
Plug 'chrisbra/colorizer'
Plug 'luochen1990/rainbow'
" Text Objects
Plug 'kana/vim-textobj-user'
\ | Plug 'kana/vim-textobj-entire'
" Sneak
Plug 'justinmk/vim-sneak'
" Marks
Plug 'kshenoy/vim-signature'
" Macros
Plug 'bronson/vim-visual-star-search'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-unimpaired'
Plug 'tpope/vim-abolish'
" Whitespace
Plug 'ntpeters/vim-better-whitespace'
" Clipboard
Plug 'svermeulen/vim-cutlass'
Plug 'svermeulen/vim-yoink'
Plug 'svermeulen/vim-subversive'
" Buffer
Plug 'moll/vim-bbye'
"
" Internal Interfaces
"
" Lists
Plug 'milkypostman/vim-togglelist'
" Undo
Plug 'mbbill/undotree'
" Ctags
Plug 'majutsushi/tagbar'
" Session
Plug 'xolox/vim-misc'
\ | Plug 'xolox/vim-session'
" Unicode
let unicode_src = 'http://unicode.org/Public/UNIDATA/UnicodeData.txt'
let unicode_dest = './autoload/unicode/UnicodeData.txt'
Plug 'chrisbra/unicode.vim',
\ { 'do': join(['curl --create-dirs -o', unicode_dest, unicode_src], ' ')}
" Unite.vim
Plug 'shougo/vimproc.vim',
\ { 'do': 'make \|\| gmake' }
\ | Plug 'shougo/unite.vim'
\ | Plug 'shougo/neoyank.vim'
\ | Plug 'shougo/vimfiler.vim'
"
" External Interfaces
"
" ALE
Plug 'w0rp/ale'
" Terminal
Plug 'kassio/neoterm'
Plug 'janko-m/vim-test'
" Autoformat
Plug 'chiel92/vim-autoformat'
" Network
Plug 'eiginn/netrw'
" Git
Plug 'airblade/vim-gitgutter'
Plug 'tpope/vim-fugitive'
" Documentation
Plug 'keith/investigate.vim'
" Thesaurus
Plug 'ron89/thesaurus_query.vim'
" Projectionist
Plug 'tpope/vim-projectionist'
" tmux
Plug 'christoomey/vim-tmux-navigator'
" Grepper
Plug 'mhinz/vim-grepper'
" fzf
Plug 'junegunn/fzf'
Plug 'junegunn/fzf.vim'
"
" Language Interfaces
"
" Language Groups
let language_groups = {
\ 'javascript': ['javascript', 'javascript.jsx'],
\ 'web': ['css', 'html', 'html.handlebars', 'tag',
\ 'javascript', 'javascript.jsx', 'liquid', 'mjml', 'sass', 'scss']
\ }
" LSP Support
Plug 'neovim/nvim-lspconfig'
Plug 'williamboman/mason.nvim'
Plug 'williamboman/mason-lspconfig.nvim'
Plug 'kyazdani42/nvim-web-devicons'
Plug 'folke/trouble.nvim',
\ { 'commit': 'f1168feada93c0154ede4d1fe9183bf69bac54ea' }
" Autocompletion
Plug 'hrsh7th/nvim-cmp'
Plug 'hrsh7th/cmp-buffer'
Plug 'hrsh7th/cmp-path'
Plug 'saadparwaiz1/cmp_luasnip'
Plug 'hrsh7th/cmp-nvim-lsp'
Plug 'hrsh7th/cmp-nvim-lua'
" Snippets
Plug 'L3MON4D3/LuaSnip'
Plug 'rafamadriz/friendly-snippets'
Plug 'VonHeikemen/lsp-zero.nvim',
\ { 'branch': 'v2.x' }
" Vim-polyglot
Plug 'sheerun/vim-polyglot'
" API Blueprint
Plug 'kylef/apiblueprint.vim',
\ { 'for': 'apiblueprint' }
" Clojure
Plug 'tpope/vim-fireplace',
\ { 'for': 'clojure' }
Plug 'tpope/vim-salve',
\ { 'for': 'clojure' }
Plug 'guns/vim-sexp',
\ { 'for': 'clojure' }
Plug 'tpope/vim-sexp-mappings-for-regular-people',
\ { 'for': 'clojure' }
Plug 'guns/vim-clojure-highlight',
\ { 'for': 'clojure' }
Plug 'venantius/vim-cljfmt',
\ { 'for': 'clojure' }
Plug 'venantius/vim-eastwood',
\ { 'for': 'clojure' }
Plug 'severeoverfl0w/async-clj-omni',
\ { 'for': 'clojure' }
" GraphQL
Plug 'jparise/vim-graphql'
" Haskell
Plug 'bitc/vim-hdevtools',
\ { 'for': 'haskell' }
Plug 'eagletmt/neco-ghc',
\ { 'for': 'haskell' }
" JavaScript
Plug 'isruslan/vim-es6',
\ { 'for': language_groups['javascript'] }
" LaTeX
Plug 'lervag/vimtex',
\ { 'for': 'tex' }
" Python
Plug 'tmhedberg/simpylfold',
\ { 'for': 'python' }
"
" Markdown
Plug 'tpope/vim-markdown'
" Riot
Plug 'ryym/vim-riot',
\ { 'for': 'riot' }
" Ruby
Plug 'tpope/vim-rbenv',
\ { 'for': 'ruby' }
Plug 'tpope/vim-bundler',
\ { 'for': 'ruby' }
Plug 'danchoi/ri.vim',
\ { 'for': 'ruby' }
" Terraform
Plug 'hashivim/vim-terraform',
\ { 'for': 'terraform' }
Plug 'juliosueiras/vim-terraform-completion',
\ { 'for': 'terraform' }
"
" Web
Plug 'othree/csscomplete.vim',
\ { 'for': language_groups['web'] }
Plug 'mattn/emmet-vim',
\ { 'for': language_groups['web'] }
"
" Initialization Settings
"
"
" vim-airline
" Disable Powerline.
let g:powerline_loaded = 1
" Use Powerline fonts for vim-airline.
let g:airline_powerline_fonts = 1
" Enable tabline.
let g:airline#extensions#tabline#enabled = 1
" Enable ALE.
let g:airline#extensions#ale#enabled = 1
let g:ale_fixers = {
\ 'json': ['jq']
\ }
"
" closetag.vim
" Enable for specific file types.
let g:closetag_filenames = join([
\ '*.html',
\ '*.xhtml',
\ '*.phtml',
\ '*.hbs',
\ '*.js',
\ '*.jsx'
\ ], ',')
"
" colorizer
" Enable colors for specific file types.
let g:colorizer_auto_filetype = join([
\ 'css',
\ 'html',
\ 'html.handlebars',
\ 'sass',
\ 'scss'
\ ], ',')
"
" rainbow
" Enable rainbow parentheses.
let g:rainbow_active = 1
"
" oceanic-next
let g:oceanic_next_terminal_bold = 1
let g:oceanic_next_terminal_italic = 1
"
" Sneak
let g:sneak#label = 1
"
" vim-signature
" Set signature leader.
let g:SignatureMap = { 'Leader': "\<Leader\>;" }
"
" vim-commentary
" Disable \\ commentary maps.
let g:commentary_map_backslash = 0
"
" vim-better-whitespace
let g:better_whitespace_enabled = 1
let g:strip_whitespace_on_save = 1
let g:better_whitespace_operator = ''
let g:strip_whitespace_confirm = 0
"
" GitGutter
"
" github-issues
" Load GitHub personal access token.
let g:github_access_token_file =
\ $XDG_CONFIG_HOME . '/github/tokens/github-issues.vim'
if filereadable(g:github_access_token_file)
let g:github_access_token = readfile(g:github_access_token_file)[0]
endif
" Load GitHub issues asynchronously.
let g:gissues_lazy_load = 1
let g:gissues_async_omni = 1
" thesaurus_query.vim
let g:tq_map_keys = 0
"
" fzf
" Set fzf command prefix.
let g:fzf_command_prefix = 'Fzf'
" Set default fzf command.
if executable('fzf')
if empty($IGNORE_FILE)
let s:ignore_file = $HOME. '/.ignore'
else
let s:ignore_file = $IGNORE_FILE
endif
if executable('ag')
let $FZF_DEFAULT_COMMAND = 'ag --hidden --path-to-ignore ' . s:ignore_file . ' -g ""'
endif
if executable('rg')
let $FZF_DEFAULT_COMMAND =
\ 'rg --files --smart-case --hidden --follow --ignore-file ' . s:ignore_file
endif
endif
"
" Vim-polyglot
" Disable select language packs.
let g:polyglot_disabled = [
\ 'latex'
\ ]
"
" Haskell
let g:necoghc_use_stack = 1
"
" Ruby
" Disable default ri.vim mappings.
let g:ri_no_mappings = 1
"
" Yoink.vim
let g:yoinkMaxItems = 20
let g:yoinkSavePersistently = 1
let g:yoinkSwapClampAtEnds = 0
let g:yoinkIncludeDeleteOperations = 1