forked from rafi/vim-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugins.yaml
471 lines (411 loc) · 15.1 KB
/
plugins.yaml
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
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
---
# PLUGINS
# ==========================================
# Startup
# -------
- repo: Shougo/dein.vim
- repo: rafi/awesome-vim-colorschemes
- repo: rafi/vim-badge
- repo: thinca/vim-localrc
- repo: christoomey/vim-tmux-navigator
- repo: junegunn/vim-peekaboo
- repo: tpope/vim-sleuth
- repo: itchyny/vim-gitbranch
- repo: itchyny/vim-parenmatch
- repo: itchyny/vim-cursorword
hook_add: |
autocmd MyAutoCmd FileType denite,qf,nerdtree let b:cursorword=0
autocmd MyAutoCmd InsertEnter * let b:cursorword=0
autocmd MyAutoCmd InsertLeave * let b:cursorword=1
# Lazy Loading
# ==========================================
# Languages
# ---------
- { repo: hail2u/vim-css3-syntax, on_ft: css }
- { repo: ap/vim-css-color, on_ft: [ css, scss, sass ] }
- { repo: cakebaker/scss-syntax.vim, on_ft: [ scss, sass ]}
- { repo: groenewege/vim-less, on_ft: less }
- { repo: othree/csscomplete.vim, on_ft: css }
- { repo: mitsuhiko/vim-jinja, on_ft: [ htmljinja, jinja ]}
- { repo: mustache/vim-mustache-handlebars, on_ft: html }
- repo: pearofducks/ansible-vim
on_ft: [ ansible, ansible_hosts, ansible_template ]
- repo: othree/html5.vim
on_ft: html
hook_add: |
let g:html5_event_handler_attributes_complete = 0
let g:html5_rdfa_attributes_complete = 0
let g:html5_microdata_attributes_complete = 0
let g:html5_aria_attributes_complete = 0
- repo: plasticboy/vim-markdown
on_ft: markdown
hook_add: |
let g:vim_markdown_override_foldtext = 0
let g:vim_markdown_initial_foldlevel = 999
let g:vim_markdown_new_list_item_indent = 2
let g:vim_markdown_frontmatter = 1
let g:vim_markdown_conceal = 0
let g:vim_markdown_fenced_languages = [
\ 'c++=cpp',
\ 'viml=vim',
\ 'bash=sh',
\ 'ini=dosini'
\ ]
- repo: rhysd/vim-gfm-syntax
depends: vim-markdown
on_ft: markdown
hook_source: |
let g:gfm_syntax_enable_always = 0
let g:gfm_syntax_highlight_emoji = 0
let g:gfm_syntax_enable_filetypes = ['markdown']
- repo: pangloss/vim-javascript
on_ft: [ javascript, jsx, javascript.jsx ]
hook_source: |
let g:javascript_plugin_jsdoc = 1
let g:javascript_plugin_flow = 1
highlight! link jsFutureKeys PreProc
- { repo: othree/jspc.vim, on_ft: [ javascript, jsx, javascript.jsx ] }
- { repo: MaxMEllon/vim-jsx-pretty, on_ft: [ javascript, jsx, javascript.jsx ]}
- { repo: heavenshell/vim-jsdoc, on_ft: [ javascript, jsx, javascript.jsx ] }
- { repo: moll/vim-node, on_ft: [ javascript, jsx, javascript.jsx ] }
- { repo: elzr/vim-json, on_ft: json }
# pangloss/javascript vs. othree/yajs
#- { repo: othree/yajs.vim, on_ft: [ javascript, jsx, javascript.jsx ]}
#- { repo: gavocanov/vim-js-indent, on_ft: [ javascript, jsx, javascript.jsx ]}
#- repo: mxw/vim-jsx
# on_ft: [ javascript, jsx, javascript.jsx ]
# hook_source: let g:jsx_ext_required = 0
- repo: fatih/vim-go
on_ft: go
hook_source: |
let g:go_def_mapping_enabled = 0
let g:go_loaded_gosnippets = 1
let g:go_snippet_engine = 'neosnippet'
let g:go_highlight_extra_types = 1
let g:go_highlight_operators = 1
- { repo: vim-python/python-syntax, on_ft: python }
- { repo: Vimjas/vim-python-pep8-indent, on_ft: python }
- { repo: vim-scripts/python_match.vim, on_ft: python }
- { repo: tmhedberg/SimpylFold, on_ft: python }
- { repo: raimon49/requirements.txt.vim, on_ft: requirements }
- { repo: StanAngeloff/php.vim, on_ft: php }
- { repo: shawncplus/phpcomplete.vim, on_ft: php, on_i: 1 }
- { repo: tbastos/vim-lua, on_ft: lua }
- { repo: osyo-manga/vim-monster, on_ft: ruby }
- { repo: toyamarinyon/vim-swift, on_ft: swift }
- { repo: vim-jp/syntax-vim-ex, on_ft: vim }
- { repo: chrisbra/csv.vim, on_ft: csv }
- { repo: tpope/vim-git, on_ft: [ gitcommit, gitrebase, gitconfig ]}
- { repo: ekalinin/Dockerfile.vim, on_ft: [ Dockerfile, docker-compose ]}
- { repo: tmux-plugins/vim-tmux, on_ft: tmux }
- { repo: andreshazard/vim-logreview, on_ft: logreview }
- { repo: cespare/vim-toml, on_ft: toml }
- { repo: PotatoesMaster/i3-vim-syntax, on_ft: i3 }
- { repo: dag/vim-fish, on_ft: fish }
- { repo: jstrater/mpvim, on_ft: portfile }
- { repo: robbles/logstash.vim, on_ft: logstash }
- { repo: exu/pgsql.vim, on_ft: pgsql }
- { repo: othree/nginx-contrib-vim, on_ft: nginx }
- { repo: IN3D/vim-raml, on_ft: raml }
- { repo: sbdchd/neoformat, on_ft: [ cpp, c, python, lua, js ]}
# ==========================================
# Commands
# --------
- repo: scrooloose/nerdtree
depends: nerdtree-git-plugin
on_map: { n: <Plug> }
hook_post_source: source $VIMPATH/config/plugins/nerdtree.vim
- { repo: Xuyuanp/nerdtree-git-plugin, on_source: nerdtree }
- { repo: tpope/vim-commentary, on_map: <Plug>Commentary }
- { repo: t9md/vim-choosewin, on_map: { n: <Plug> }}
- { repo: Shougo/vinarise.vim, on_cmd: Vinarise }
- { repo: kana/vim-niceblock, on_map: { x: <Plug> }}
- { repo: guns/xterm-color-table.vim, on_cmd: XtermColorTable }
- { repo: mbbill/undotree, on_cmd: UndotreeToggle }
- { repo: metakirby5/codi.vim, on_cmd: Codi, if: empty($VIM_MINIMAL) }
- { repo: Shougo/vimproc.vim, build: make, on_func: vimproc# }
- { repo: reedes/vim-wordy, on_cmd: [ Wordy, NextWordy, PrevWordy ]}
- { repo: brooth/far.vim, on_cmd: [ Far, Farp, F ] }
- { repo: jreybert/vimagit, on_cmd: Magit }
- { repo: tweekmonster/helpful.vim, on_cmd: HelpfulVersion }
- { repo: lambdalisue/gina.vim, on_cmd: Gina }
- repo: mzlogin/vim-markdown-toc
on_cmd: [ GenTocGFM, GenTocRedcarpet, GenTocGitLab, UpdateToc ]
hook_source: let g:vmt_auto_update_on_save = 0
- repo: easymotion/vim-easymotion
on_map: { n: <Plug> }
hook_source: |
let g:EasyMotion_do_mapping = 0
let g:EasyMotion_prompt = 'Jump to → '
let g:EasyMotion_keys = 'fjdksweoavn'
let g:EasyMotion_smartcase = 1
let g:EasyMotion_use_smartsign_us = 1
- repo: chemzqm/vim-easygit
on_cmd: [ Gcd, Glcd, Gcommit, Gblame, Gstatus, Gdiff, Gbrowse, Gstatus, Gpush ]
hook_source: let g:easygit_enable_command = 1
- repo: majutsushi/tagbar
if: empty($VIM_MINIMAL)
on_cmd: TagbarToggle
hook_source: |
let g:tagbar_width = 40
if executable('jsctags')
let g:tagbar_type_javascript = { 'ctagsbin': 'jsctags' }
endif
- repo: beloglazov/vim-online-thesaurus
if: empty($VIM_MINIMAL)
on_cmd: [ OnlineThesaurusCurrentWord, Thesaurus ]
hook_source: let g:online_thesaurus_map_keys = 0
# ==========================================
# Interface
# ---------
- { repo: haya14busa/vim-asterisk, on_map: { nv: <Plug> }}
- { repo: rhysd/accelerated-jk, on_map: { n: <Plug> }}
- { repo: haya14busa/vim-edgemotion, on_map: { nv: <Plug> }}
- { repo: t9md/vim-quickhl, on_map: { nv: <Plug> }}
- { repo: rafi/vim-sidemenu, on_map: { nv: <Plug> }}
- repo: airblade/vim-gitgutter
on_path: .*
hook_source: |
let g:gitgutter_map_keys = 0
let g:gitgutter_sh = $SHELL
- repo: nathanaelkane/vim-indent-guides
on_cmd: [ IndentGuidesEnable, IndentGuidesDisable, IndentGuidesToggle ]
hook_post_source: |
call indent_guides#init_script_vars()
call indent_guides#highlight_colors()
hook_add: |
let g:indent_guides_color_change_percent = 3
let g:indent_guides_autocmds_enabled = 0
let g:indent_guides_default_mapping = 0
let g:indent_guides_guide_size = 1
let g:indent_guides_indent_levels = 15
let g:custom_exclude = [ 'help', 'denite', 'codi' ]
autocmd MyAutoCmd BufEnter *
\ if ! empty(&l:filetype) && index(g:custom_exclude, &l:filetype) == -1
\| if g:indent_guides_autocmds_enabled == 0 && &l:expandtab
\| IndentGuidesEnable
\| elseif g:indent_guides_autocmds_enabled == 1 && ! &l:expandtab
\| IndentGuidesDisable
\| endif
\| endif
- repo: MattesGroeger/vim-bookmarks
on_path: .*
hook_source: |
let g:bookmark_auto_save_file = $VARPATH.'/bookmarks'
let g:bookmark_no_default_key_mappings = 1
let g:bookmark_disable_ctrlp = 1
- repo: rhysd/committia.vim
on_path: COMMIT_EDITMSG
hook_source: let g:committia_min_window_width = 70
- repo: benekastah/neomake
if: has('nvim') && empty($VIM_MINIMAL)
on_cmd: Neomake
hook_source: source $VIMPATH/config/plugins/neomake.vim
hook_add: |
let g:lint_filetypes = [
\ 'ansible', 'python', 'php', 'ruby', 'vim', 'go', 'sh',
\ 'javascript', 'jsx', 'javascript.jsx', 'json', 'css',
\ 'markdown', 'html', 'yaml'
\ ]
autocmd MyAutoCmd BufWritePost *
\ if index(g:lint_filetypes, &filetype) > -1 && empty(&buftype)
\| Neomake
\| elseif &filetype =~ 'html'
\| Neomake tidy
\| endif
- repo: junegunn/goyo.vim
if: empty($VIM_MINIMAL)
depends: limelight.vim
on_cmd: Goyo
hook_source: source $VIMPATH/config/plugins/goyo.vim
- repo: junegunn/limelight.vim
if: empty($VIM_MINIMAL)
on_cmd: Limelight
- repo: itchyny/calendar.vim
if: empty($VIM_MINIMAL)
on_cmd: Calendar
hook_source: |
let g:calendar_google_calendar = 1
let g:calendar_google_task = 1
- repo: vimwiki/vimwiki
if: empty($VIM_MINIMAL)
on_map: { n: <Plug> }
on_cmd: Vimwiki
hook_add: |
let g:vimwiki_use_calendar = 1
let g:vimwiki_hl_headers = 1
let g:vimwiki_hl_cb_checked = 1
let g:vimwiki_autowriteall = 0
hook_source: |
let g:vimwiki_list = [
\ { 'diary_header': 'Diary',
\ 'diary_link_fmt': '%Y-%m/%d',
\ 'auto_toc': 1,
\ 'path': '~/docs/wiki/',
\ 'syntax': 'markdown',
\ 'ext': '.md' },
\ { 'path': '~/docs/blog/',
\ 'syntax': 'markdown',
\ 'ext': '.md' }
\ ]
# ==========================================
# Completion
# ----------
- repo: Shougo/deoplete.nvim
depends: context_filetype.vim
if: has('nvim') && empty($VIM_MINIMAL)
on_i: 1
hook_add: let g:deoplete#enable_at_startup = 1
hook_source: source $VIMPATH/config/plugins/deoplete.vim
- repo: Shougo/neocomplete
depends: context_filetype.vim
if: ! has('nvim') && has('lua') && empty($VIM_MINIMAL)
on_event: InsertEnter
hook_add: |
let g:neocomplete#data_directory = $VARPATH.'/complete'
let g:neocomplete#enable_at_startup = 1
hook_source: source $VIMPATH/config/plugins/neocomplete.vim
- repo: Shougo/neosnippet.vim
depends: [ neosnippet-snippets, context_filetype.vim ]
if: empty($VIM_MINIMAL)
on_event: InsertCharPre
on_ft: snippet
hook_add: let g:neosnippet#data_directory = $VARPATH.'/snippets'
hook_source: |
let g:neosnippet#enable_snipmate_compatibility = 1
let g:neosnippet#enable_completed_snippet = 1
let g:neosnippet#expand_word_boundary = 1
autocmd MyAutoCmd InsertLeave * NeoSnippetClearMarkers
- repo: ludovicchabant/vim-gutentags
if: executable('ctags') && empty($VIM_MINIMAL)
on_path: .*
hook_add: |
let g:gutentags_cache_dir = $VARPATH.'/tags'
let g:gutentags_generate_on_write = 1
let g:gutentags_generate_on_missing = 0
let g:gutentags_generate_on_new = 0
let g:gutentags_ctags_exclude_wildignore = 1
let g:gutentags_ctags_exclude = [
\ '*/wp-admin', '*/wp-content', '*/wp-includes',
\ '*/application/vendor', '*/vendor/ckeditor', '*/media/vendor'
\ ]
- repo: mattn/emmet-vim
if: empty($VIM_MINIMAL)
on_i: 1
on_ft: [ html, css, jsx, javascript, javascript.jsx ]
hook_source: |
let g:use_emmet_complete_tag = 0
let g:user_emmet_install_global = 0
let g:user_emmet_install_command = 0
let g:user_emmet_mode = 'i'
- repo: Shougo/echodoc.vim
if: empty($VIM_MINIMAL)
on_event: CompleteDone
hook_post_source: call echodoc#enable()
- repo: Raimondi/delimitMate
on_i: 1
hook_source: |
let g:delimitMate_expand_cr = 1
let g:delimitMate_excluded_ft = 'html'
- { repo: Shougo/neosnippet-snippets, if: empty($VIM_MINIMAL) }
- { repo: Shougo/context_filetype.vim, lazy: 1, if: empty($VIM_MINIMAL) }
- { repo: Shougo/neco-vim, on_ft: vim, if: empty($VIM_MINIMAL) }
- { repo: Shougo/neco-syntax, on_source: [ neocomplete.vim, deoplete.nvim ]}
- repo: davidhalter/jedi-vim
if: empty($VIM_MINIMAL)
on_ft: python
hook_add: |
let g:jedi#completions_enabled = 0
let g:jedi#auto_vim_configuration = 0
let g:jedi#smart_auto_mappings = 0
let g:jedi#show_call_signatures = 1
hook_source: |
let g:jedi#use_tag_stack = 0
let g:jedi#popup_select_first = 0
let g:jedi#popup_on_dot = 0
let g:jedi#max_doc_height = 100
let g:jedi#quickfix_window_height = 10
let g:jedi#use_splits_not_buffers = 'right'
# Only NeoVim ------------------------------
- repo: zchee/deoplete-go
if: has('nvim') && ! empty($GOPATH) && empty($VIM_MINIMAL)
build: make
on_ft: go
on_i: 1
- repo: zchee/deoplete-jedi
if: has('nvim') && empty($VIM_MINIMAL)
on_ft: python
on_i: 1
hook_source: autocmd MyAutoCmd FileType python setlocal omnifunc=
- repo: carlitux/deoplete-ternjs
build: npm install -g tern
if: executable('npm') && has('nvim') && empty($VIM_MINIMAL)
on_i: 1
on_ft: [ javascript, jsx, javascript.jsx ]
hook_source: |
let g:tern_request_timeout = 1
let g:tern_show_signature_in_pum = 0
- repo: wellle/tmux-complete.vim
if: has('nvim') && empty($VIM_MINIMAL)
on_i: 1
hook_add: let g:tmuxcomplete#trigger = ''
- repo: ternjs/tern_for_vim
build: npm install
if: executable('npm') && empty($VIM_MINIMAL)
on_i: 1
on_ft: [ javascript, jsx, javascript.jsx ]
hook_add: |
let g:tern#command = ['tern']
let g:tern#arguments = ['--persistent']
let g:tern_request_timeout = 1
let g:tern_show_signature_in_pum = 0
hook_post_source: |
autocmd MyAutoCmd FileType javascript setlocal omnifunc=tern#Complete
# ==========================================
# Denite
# ------
- repo: Shougo/denite.nvim
on_cmd: Denite
hook_source: source $VIMPATH/config/plugins/denite.vim
- { repo: chemzqm/unite-location, on_source: denite.nvim }
- { repo: chemzqm/denite-git, on_source: denite.nvim }
- { repo: rafi/vim-denite-z, on_source: denite.nvim }
- { repo: rafi/vim-denite-session, on_source: denite.nvim }
- repo: rafi/vim-denite-mpc
if: executable('mpc') && empty($VIM_MINIMAL)
on_source: denite.nvim
hook_source: call denite#custom#var('mpc', 'default_view', 'date')
# ==========================================
# Operators
# ---------
- { repo: kana/vim-operator-user, lazy: 1 }
- repo: kana/vim-operator-replace
depends: vim-operator-user
on_map: { vnx: <Plug> }
- repo: rhysd/vim-operator-surround
depends: [ vim-operator-user, vim-textobj-multiblock ]
on_map: { vnx: <Plug> }
- repo: haya14busa/vim-operator-flashy
depends: vim-operator-user
on_map: { nx: <Plug> }
# ==========================================
# Text objects
# ------------
- { repo: kana/vim-textobj-user, on_func: textobj#user# }
- { repo: bkad/CamelCaseMotion, on_map: { nox: <Plug>CamelCaseMotion }}
- { repo: terryma/vim-expand-region, on_map: { x: <Plug> }}
- { repo: AndrewRadev/sideways.vim, on_map: { ox: <Plug>Sideways }}
- { repo: AndrewRadev/splitjoin.vim, on_map: { n: <Plug>Splitjoin }}
- { repo: AndrewRadev/linediff.vim, on_cmd: Linediff }
- repo: AndrewRadev/dsf.vim
on_map: { n: <Plug>Dsf }
hook_add: let g:dsf_no_mappings = 1
- repo: osyo-manga/vim-textobj-multiblock
depends: vim-textobj-user
on_map: { ox: <Plug> }
hook_add: let g:textobj_multiblock_no_default_key_mappings = 1
- repo: kana/vim-textobj-function
depends: vim-textobj-user
on_map: { ox: <Plug> }
hook_add: let g:textobj_function_no_default_key_mappings = 1
# vim: set ts=2 sw=2 tw=80 et :