forked from rafi/vim-config
-
Notifications
You must be signed in to change notification settings - Fork 3
/
plugins.yaml
515 lines (441 loc) · 15.6 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
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
---
# PLUGINS
# ===
# See lua/plugins/*.lua and config/plugins/*.vim for plugin configuration.
# See config/plugins/all.vim for plugin mappings.
# Startup
# -------
- repo: Shougo/dein.vim
- repo: thinca/vim-localrc
- { repo: rafi/awesome-vim-colorschemes, merged: 0 }
- repo: christoomey/vim-tmux-navigator
if: "! (has('win32') || has('win64'))"
- repo: tpope/vim-sleuth
hook_add: |-
let g:sleuth_neighbor_limit = 5
autocmd user_events FileType markdown,yaml,help
\ let b:sleuth_automatic = 0
- { repo: folke/lsp-colors.nvim, if: has('nvim-0.5') }
- { repo: nvim-lua/plenary.nvim, if: has('nvim-0.5') }
- { repo: kyazdani42/nvim-web-devicons, if: has('nvim-0.5') }
- repo: sgur/vim-editorconfig
hook_add: |-
let g:editorconfig_verbose = 1
let g:editorconfig_blacklist = {
\ 'filetype': [
\ 'git.*', 'fugitive', 'help', 'defx', 'denite.*', 'startify',
\ 'vista.*', 'tagbar', 'lsp-.*', 'clap_.*', 'any-jump', 'gina-.*',
\ 'lsp-*'
\ ],
\ 'pattern': ['\.un~$']
\ }
# Lazy Loading
# ==========================================
# ==========================================
# Commands
# --------
- { repo: mbbill/undotree, on_cmd: UndotreeToggle }
- { repo: tweekmonster/helpful.vim, on_cmd: HelpfulVersion }
- { repo: lambdalisue/suda.vim, on_event: BufRead }
- repo: tyru/caw.vim
on_map: { nx: <Plug> }
depends: nvim-ts-context-commentstring
hook_add: |-
let g:caw_no_default_keymappings = 1
let g:caw_operator_keymappings = 0
- repo: TimUntersberger/neogit
depends: diffview.nvim
on_cmd: Neogit
on_lua: neogit
hook_source: lua require('plugins.neogit')
- repo: lambdalisue/gina.vim
on_cmd: Gina
on_ft: [ gitcommit, gitrebase ]
hook_source: source $VIM_PATH/config/plugins/gina.vim
- repo: folke/zen-mode.nvim
if: has('nvim-0.5')
on_cmd: ZenMode
hook_post_source: lua require('plugins.zen-mode')
- repo: folke/which-key.nvim
if: has('nvim-0.5')
on_cmd: WhichKey
hook_post_source: lua require('plugins.which-key')
- repo: tversteeg/registers.nvim
if: has('nvim-0.5')
on_cmd: Registers
on_map: { i: '<C-r>', n: '"' }
hook_source: let g:registers_window_border = 'rounded'
- repo: NTBBloodbath/rest.nvim
if: has('nvim-0.5')
on_map: { n: <Plug>RestNvim }
on_ft: http
hook_post_source: lua require('rest-nvim').setup{skip_ssl_verification=true}
hook_add: |
augroup user_events
autocmd BufNewFile,BufRead *.http setlocal expandtab
autocmd FileType httpResult nnoremap <buffer> q <cmd>quit<CR>
augroup END
- repo: pechorin/any-jump.vim
on_cmd: [ AnyJump, AnyJumpVisual ]
hook_add: |-
let g:any_jump_disable_default_keybindings = 1
autocmd user_events FileType any-jump setlocal cursorline
- repo: kana/vim-niceblock
on_map: { x: <Plug> }
hook_add: let g:niceblock_no_default_key_mappings = 0
- repo: t9md/vim-choosewin
on_map: { n: <Plug> }
hook_add: |-
let g:choosewin_label = 'ADFGHJKLUIOPQWERT'
let g:choosewin_label_padding = 5
- repo: mzlogin/vim-markdown-toc
on_cmd: [ GenTocGFM, GenTocRedcarpet, GenTocGitLab, UpdateToc ]
hook_add: let g:vmt_auto_update_on_save = 0
- repo: Ron89/thesaurus_query.vim
on_cmd:
- Thesaurus
- ThesaurusQueryReplaceCurrentWord
- ThesaurusQueryLookupCurrentWord
hook_add: |-
let g:tq_map_keys = 0
let g:tq_use_vim_autocomplete = 0
# ==========================================
# Interface
# ---------
- { repo: itchyny/vim-gitbranch, on_event: FileType }
- { repo: romainl/vim-cool, on_event: [ CursorMoved, InsertEnter ]}
- { repo: haya14busa/vim-asterisk, on_map: { nv: <Plug> }}
- { repo: rhysd/accelerated-jk, on_map: { n: <Plug> }, if: $SUDO_USER == '' }
- { repo: haya14busa/vim-edgemotion, on_map: { nv: <Plug> }}
- { repo: t9md/vim-quickhl, on_map: { nv: <Plug> }}
- { repo: rcarriga/nvim-notify, if: has('nvim-0.5') } # lazy by nature
- { repo: rafi/vim-sidemenu, on_map: { nv: <Plug> }}
# - repo: hoob3rt/lualine.nvim
- repo: shadmansaleh/lualine.nvim
if: has('nvim-0.5')
on_event: VimEnter
hook_post_source: lua require('plugins.lualine')
- repo: itchyny/vim-cursorword
on_event: FileType
hook_add: let g:cursorword = 0
hook_source: |-
augroup user_plugin_cursorword
autocmd!
autocmd FileType json,yaml,markdown,nginx,dosini,conf,text
\ let b:cursorword = 1
autocmd WinEnter * if &diff || &pvw | let b:cursorword = 0 | endif
autocmd InsertEnter * if get(b:, 'cursorword', 0) == 1
\| let b:cursorword = 0
\| endif
autocmd InsertLeave * if get(b:, 'cursorword', 1) == 0
\| let b:cursorword = 1
\| endif
augroup END
- repo: lewis6991/gitsigns.nvim
if: has('nvim-0.5')
on_event: VimEnter
hook_post_source: lua require('plugins.gitsigns')
- repo: kshenoy/vim-signature
depends: gitsigns.nvim
on_event: FileType
hook_add: |-
let g:SignatureForceRemoveGlobal = 0
let g:SignatureUnconditionallyRecycleMarks = 1
let g:SignatureErrorIfNoAvailableMarks = 0
let g:SignaturePurgeConfirmation = 0
let g:SignatureMarkTextHLDynamic = 1
let g:SignatureMarkerTextHLDynamic = 1
let g:SignatureIncludeMarkers = repeat('⚐', 10)
- repo: nathanaelkane/vim-indent-guides
on_event: FileType
hook_post_source: IndentGuidesEnable
hook_source: |-
let g:indent_guides_enable_on_vim_startup = 0
let g:indent_guides_default_mapping = 0
let g:indent_guides_tab_guides = 0
let g:indent_guides_color_change_percent = 3
let g:indent_guides_guide_size = 1
let g:indent_guides_exclude_filetypes = [
\ 'help', 'man', 'fern', 'defx', 'denite', 'denite-filter', 'startify',
\ 'vista', 'vista_kind', 'tagbar', 'lsp-hover', 'clap_input', 'fzf',
\ 'any-jump', 'gina-status', 'gina-commit', 'gina-log', 'minimap',
\ 'quickpick-filter', 'lsp-quickpick-filter', 'lspinfo'
\ ]
augroup user_plugin_indentguides
autocmd!
autocmd BufEnter *
\ if ! empty(&l:filetype) && empty(&buftype) && ! &previewwindow
\| if g:indent_guides_autocmds_enabled == 0 && &l:expandtab
\| IndentGuidesEnable
\| elseif g:indent_guides_autocmds_enabled == 1 && ! &l:expandtab
\| IndentGuidesDisable
\| endif
\| endif
augroup END
"autocmd user_events FileType * ++once IndentGuidesEnable
- repo: kevinhwang91/nvim-bqf
if: has('nvim-0.5')
on_ft: qf
on_cmd: BqfAutoToggle
on_event: QuickFixCmdPost
hook_source: lua require('plugins.bqf')
- repo: norcalli/nvim-colorizer.lua
if: has('nvim-0.4')
on_event: FileType
hook_post_source: lua require('plugins.colorizer')
- repo: rmagatti/goto-preview
if: has('nvim-0.5')
on_event: FileType
hook_post_source: lua require('plugins.goto-preview')
- repo: rhysd/committia.vim
on_event: BufWinEnter
hook_add: let g:loaded_committia = 1
hook_source: |-
let g:committia_min_window_width = 70
autocmd user_events BufWinEnter COMMIT_EDITMSG,MERGE_MSG
\ if ! exists('b:committia_opened')
\| call committia#open('git')
\| endif
- repo: itchyny/calendar.vim
on_cmd: Calendar
hook_source: |-
let g:calendar_google_calendar = 1
let g:calendar_google_task = 1
"let g:calendar_cache_directory = $VIM_DATA_PATH.'/calendar'"
- repo: deris/vim-shot-f
on_map: { nxo: <Plug> }
hook_add: let g:shot_f_no_default_key_mappings = 1
- repo: kristijanhusak/orgmode.nvim
if: has('nvim-0.5')
# on_ft: org
hook_post_source: lua require('plugins.orgmode')
- repo: vimwiki/vimwiki
on_map: { n: <Plug> }
on_cmd: [ VimwikiIndex, VimwikiUISelect ]
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/books/',
\ 'syntax': 'markdown',
\ 'ext': '.md' }
\ ]
# ==========================================
# Completion and code analysis
# ----------
- { repo: kabouzeid/nvim-lspinstall, if: has('nvim-0.5') }
- { repo: kosayoda/nvim-lightbulb, if: has('nvim-0.5') }
- repo: neovim/nvim-lspconfig
if: has('nvim-0.5')
depends:
- lsp_signature.nvim
- todo-comments.nvim
- lua-dev.nvim
- cmp-nvim-lsp
on_event: VimEnter
hook_post_source: lua require('plugins.lspconfig')
- { repo: ray-x/lsp_signature.nvim, lazy: true }
- { repo: folke/lua-dev.nvim, lazy: true }
- repo: folke/todo-comments.nvim
if: has('nvim-0.5')
lazy: true
hook_post_source: lua require('plugins.todo-comments')
- repo: windwp/nvim-autopairs
if: has('nvim-0.5')
on_event: InsertEnter
hook_post_source: lua require('nvim-autopairs').setup()
- repo: hrsh7th/nvim-cmp
if: has('nvim-0.5')
on_event: VimEnter
depends: [ nvim-autopairs, vim-vsnip ]
hook_post_source: lua require('plugins.cmp')
- { repo: hrsh7th/cmp-nvim-lsp, lazy: true }
- { repo: hrsh7th/cmp-nvim-lua, on_source: nvim-cmp }
- { repo: hrsh7th/cmp-buffer, on_source: nvim-cmp }
- { repo: hrsh7th/cmp-vsnip, on_source: nvim-cmp }
- { repo: hrsh7th/cmp-path, on_source: nvim-cmp }
- { repo: hrsh7th/cmp-emoji, on_source: nvim-cmp }
- { repo: andersevenrud/compe-tmux, rev: cmp, on_source: nvim-cmp }
- repo: hrsh7th/vim-vsnip
depends: [ vim-vsnip-integ, friendly-snippets ]
on_event: InsertEnter
merged: 0
hook_add: |-
let g:vsnip_snippet_dir = expand('$VIM_DATA_PATH/vsnip')
let g:vsnip_snippet_dirs = [ expand('$VIM_PATH/snippets') ]
let g:vsnip_filetypes = {}
let g:vsnip_filetypes.javascriptreact = ['javascript']
let g:vsnip_filetypes.typescriptreact = ['typescript']
- { repo: hrsh7th/vim-vsnip-integ, lazy: true }
- { repo: rafamadriz/friendly-snippets, merged: 0, lazy: true }
- repo: folke/trouble.nvim
if: has('nvim-0.5')
on_cmd: [ Trouble, TroubleToggle ]
- repo: sindrets/diffview.nvim
if: has('nvim-0.5')
on_cmd: [ DiffviewOpen, DiffviewFileHistory ]
hook_post_source: lua require('plugins.diffview').setup()
- repo: nvim-telescope/telescope.nvim
if: has('nvim-0.5')
depends: [ todo-comments.nvim, session-lens, telescope-zoxide ]
on_cmd: Telescope
on_lua: telescope
hook_add: lua require('plugins.telescope').preload()
hook_post_source: lua require('plugins.telescope').setup()
- repo: rmagatti/session-lens
if: has('nvim-0.5')
lazy: true
hook_post_source: lua require('plugins.session-lens')
- repo: jvgrootveld/telescope-zoxide
if: has('nvim-0.5')
lazy: true
hook_post_source: lua require('plugins.telescope-zoxide')
- repo: simrat39/symbols-outline.nvim
if: has('nvim-0.5')
on_cmd: [ SymbolsOutline, SymbolsOutlineOpen ]
hook_source: lua require('plugins.symbols-outline')
- repo: rmagatti/auto-session
if: has('nvim-0.5')
depends: [ gitsigns.nvim, nvim-lspconfig ]
on_event: VimEnter
hook_post_source: lua require('plugins.auto-session')
- { repo: sbdchd/neoformat, on_cmd: Neoformat }
- repo: mattn/emmet-vim
on_event: InsertEnter
on_ft: [ html, css, vue, javascript, javascriptreact, svelte ]
hook_source: |-
let g:user_emmet_mode = 'i'
let g:user_emmet_install_global = 0
let g:user_emmet_install_command = 0
let g:user_emmet_complete_tag = 0
# ==========================================
# File explorer
# ------
- repo: lambdalisue/fern.vim
on_cmd: Fern
hook_source: source $VIM_PATH/config/plugins/fern.vim
- repo: lambdalisue/nerdfont.vim # lazy by nature
- repo: lambdalisue/fern-git-status.vim
on_source: fern.vim
hook_add: let g:fern_git_status_disable_startup = 1
hook_source: call fern_git_status#init()
- { repo: lambdalisue/fern-mapping-git.vim, on_source: fern.vim }
- { repo: lambdalisue/fern-bookmark.vim, on_source: fern.vim }
- { repo: yuki-yano/fern-preview.vim, on_source: fern.vim }
- repo: lambdalisue/fern-renderer-nerdfont.vim
on_source: fern.vim
hook_source: |-
let g:fern#renderer = 'nerdfont'
let g:fern#renderer#nerdfont#padding = get(g:, 'global_symbol_padding', ' ')
- repo: lambdalisue/glyph-palette.vim
on_source: fern.vim
hook_source: autocmd user_events FileType fern call glyph_palette#apply()
# ==========================================
# Syntax
# ---------
- repo: nvim-treesitter/nvim-treesitter
if: has('nvim-0.5')
on_event: FileType
on_cmd: [ TSUpdate, TSInstall, TSInstallInfo, TSModuleInfo, TSConfigInfo ]
hook_post_update: ':TSUpdate'
hook_source: lua require('plugins.treesitter')
- repo: nvim-treesitter/nvim-treesitter-textobjects
on_source: nvim-treesitter
- repo: JoosepAlviste/nvim-ts-context-commentstring
on_source: nvim-treesitter
# Old syntax/indent plugins
# - { repo: groenewege/vim-less, on_ft: less }
# - { repo: iloginow/vim-stylus, on_ft: stylus } # or wavded/vim-stylus ?
- { repo: chrisbra/csv.vim, on_ft: csv }
- { repo: tpope/vim-git, on_ft: [ gitcommit, gitrebase, gitconfig ]}
- { repo: dag/vim-fish, on_ft: fish }
- { repo: towolf/vim-helm, on_ft: helm }
- { repo: mboughaba/i3config.vim, on_ft: i3config }
- { repo: mustache/vim-mustache-handlebars, on_ft: [html, mustache, handlebars]}
- { repo: digitaltoad/vim-pug, on_ft: [ pug, jade ]}
- { repo: keith/swift.vim, on_ft: swift }
- { repo: lifepillar/pgsql.vim, on_ft: pgsql }
- { repo: chr4/nginx.vim, on_ft: nginx }
- { repo: vim-jp/syntax-vim-ex, on_ft: vim }
- { repo: MTDL9/vim-log-highlighting, on_ft: log }
- { repo: tmux-plugins/vim-tmux, on_ft: tmux }
- { repo: reasonml-editor/vim-reason-plus, on_ft: [ reason, merlin ] }
- repo: plasticboy/vim-markdown
on_ft: markdown
hook_add: |-
let g:vim_markdown_frontmatter = 1
let g:vim_markdown_strikethrough = 1
let g:vim_markdown_folding_disabled = 1
let g:vim_markdown_conceal = 1
let g:vim_markdown_conceal_code_blocks = 1
let g:vim_markdown_new_list_item_indent = 0
let g:vim_markdown_toc_autofit = 0
let g:vim_markdown_follow_anchor = 0
let g:vim_markdown_no_extensions_in_markdown = 1
let g:vim_markdown_edit_url_in = 'vsplit'
let g:vim_markdown_fenced_languages = [
\ 'c++=cpp',
\ 'viml=vim',
\ 'bash=sh',
\ 'ini=dosini',
\ 'js=javascript',
\ 'json=javascript',
\ 'jsx=javascriptreact',
\ 'tsx=typescriptreact',
\ 'docker=Dockerfile',
\ 'makefile=make',
\ 'py=python'
\ ]
- repo: pearofducks/ansible-vim
on_ft: [ ansible, ansible_hosts, jinja2 ]
hook_add: |-
let g:ansible_extra_keywords_highlight = 1
let g:ansible_template_syntaxes = {
\ '*.json.j2': 'json',
\ '*.(ba)?sh.j2': 'sh',
\ '*.ya?ml.j2': 'yaml',
\ '*.xml.j2': 'xml',
\ '*.conf.j2': 'conf',
\ '*.ini.j2': 'ini'
\ }
- repo: hashivim/vim-terraform
on_ft: terraform
on_cmd: [ Terraform, TerraformFmt ]
# ==========================================
# Operators and text objects
# ---------
- repo: machakann/vim-sandwich
on_map:
nxo: [ <Plug>(operator-sandwich-, <Plug>(textobj-sandwich- ]
hook_add: |-
let g:sandwich_no_default_key_mappings = 1
let g:operator_sandwich_no_default_key_mappings = 1
let g:textobj_sandwich_no_default_key_mappings = 1
- repo: mfussenegger/nvim-ts-hint-textobject
if: has('nvim-0.5')
depends: nvim-treesitter
on_lua: tsht
- repo: AndrewRadev/sideways.vim
on_map:
xo: <Plug>Sideways
n: [ SidewaysLeft, SidewaysRight, SidewaysJumpLeft, SidewaysJumpRight ]
- { repo: AndrewRadev/linediff.vim, on_cmd: [ Linediff, LinediffAdd ]}
- repo: AndrewRadev/splitjoin.vim
on_map: { n: [ SplitjoinJoin, SplitjoinSplit ]}
hook_add: |-
let g:splitjoin_join_mapping = ''
let g:splitjoin_split_mapping = ''
autocmd user_events FileType go let b:splitjoin_trailing_comma = 1
- repo: AndrewRadev/dsf.vim
on_map: { n: <Plug>Dsf }
hook_add: let g:dsf_no_mappings = 1
# vim: set ts=2 sw=2 tw=80 et :