-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpack.vim
More file actions
167 lines (154 loc) · 4.02 KB
/
pack.vim
File metadata and controls
167 lines (154 loc) · 4.02 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
vim9script
import autoload "utils.vim"
const is_win = has('win32')
const package_name = 'minpac'
const minpac_dir = $'{$MYVIMDIR}/pack/{package_name}/opt/minpac'
command MinpacInstall {
if !isdirectory(minpac_dir)
silent! execute printf('!git clone https://github.com/k-takata/minpac.git %s', minpac_dir)
:qall
endif
}
# Builtin [[[1
timer_start(0, (_) => {
if !getcompletion('helptoc', 'packadd')->empty()
packadd helptoc
endif
if !getcompletion('cfilter', 'packadd')->empty()
packadd cfilter
endif
if !getcompletion('matchit', 'packadd')->empty()
packadd matchit
endif
if !getcompletion('comment', 'packadd')->empty()
packadd comment
endif
if !getcompletion('editorconfig', 'packadd')->empty()
packadd editorconfig
endif
if !getcompletion('termdebug', 'packadd')->empty()
source $MYVIMDIR/rc/pre-termdebug.vim
packadd termdebug
endif
if !getcompletion('hlyank', 'packadd')->empty()
packadd hlyank
g:hlyank_hlgroup = "Search"
g:hlyank_duration = 500
endif
if !is_win
packadd vim-man
endif
packadd formatters
packadd misc
packadd polygot
source $MYVIMDIR/rc/pre-vim-sandwich.vim
packadd vim-sandwich
source $MYVIMDIR/rc/vim-sandwich.vim
packadd vim-scratchpad
source $MYVIMDIR/rc/vim-dir.vim
utils.MapMeta()
})
# ]]]
silent! packadd minpac
if !exists('g:loaded_minpac')
finish
endif
g:plugpac_plugin_conf_path = $MYVIMDIR .. '/rc'
g:plugpac_default_type = 'delay'
plugpac_helper#SetupCommands()
au User PlugpacPost {
utils.MapMeta()
doautocmd BufEnter
# silent! edit
normal! <C-L>
}
call plugpac#Begin({
# progress_open: tab',
quiet: false,
package_name: package_name,
status_open: 'vertical',
verbose: 2,
})
Pack 'k-takata/minpac', {'type': 'opt'}
if getcompletion('retrobox', 'color')->empty()
Pack 'lifepillar/vim-gruvbox8', { 'type': 'opt' }
endif
if getcompletion('comment', 'packadd')->empty()
Pack 'tomtom/tcomment_vim'
endif
if getcompletion('editorconfig', 'packadd')->empty()
Pack 'editorconfig/editorconfig-vim'
endif
if getcompletion('hlyank', 'packadd')->empty()
Pack 'ubaldot/vim-highlight-yanked'
endif
# Lab [[[1
Pack 'junegunn/vim-easy-align'
# Enhance [[[1
Pack 'dstein64/vim-startuptime'
Pack 'junegunn/goyo.vim'
Pack 'bootleq/vim-cycle'
Pack 'LunarWatcher/auto-pairs'
Pack 'Konfekt/vim-alias'
Pack 'nickspoons/vim-movefast'
Pack 'bennyyip/tasks.vim'
Pack 'AndrewRadev/linediff.vim'
Pack 'itchyny/vim-cursorword'
Pack 'lfv89/vim-interestingwords'
Pack 'luochen1990/rainbow'
Pack 'mbbill/undotree'
Pack 'tpope/vim-characterize'
Pack 'tpope/vim-repeat'
Pack 'chrisbra/NrrwRgn' # :NR :NW :NRV :WR
if !is_win && exists('$DISPLAY')
Pack 'lilydjwg/fcitx.vim'
endif
# Motion and Edit [[[1
Pack 'machakann/vim-swap' # g, g. gs gS
Pack 'bennyyip/vim-debugstring' # <leader>ds
Pack 'tommcdo/vim-exchange' # gx gxx gxg
Pack 'tpope/vim-abolish'
if !is_win # system() is slow
Pack 'tpope/vim-apathy' # 'path'
endif
Pack 'bennyyip/vista.vim'
Pack 'justinmk/vim-sneak'
Pack 'LunarWatcher/traces.vim'
# VCS [[[1
Pack 'Eliot00/git-lens.vim'
Pack 'rhysd/conflict-marker.vim' # [x ]x
Pack 'tommcdo/vim-fugitive-blame-ext'
Pack 'tpope/vim-fugitive'
# Language [[[1
Pack 'yegappan/lsp', { branch: 'main', 'type': 'delay' }
Pack 'Konfekt/vim-compilers'
Pack 'girishji/devdocs.vim'
Pack 'Shiracamus/vim-syntax-x86-objdump-d'
Pack 'octol/vim-cpp-enhanced-highlight'
Pack 'chrisbra/csv.vim'
if !is_win
Pack 'pearofducks/ansible-vim'
endif
Pack 'tridactyl/vim-tridactyl'
Pack 'bfrg/vim-jq'
Pack 'bfrg/vim-jqplay'
Pack 'lervag/vimtex'
if executable('nim')
Pack 'zah/nim.vim'
endif
# Web [[[3
Pack 'MaxMEllon/vim-jsx-pretty'
Pack 'BourgeoisBear/clrzr'
# Pack 'mattn/emmet-vim', { 'for': ['xml', 'html', 'css', 'javascript', 'typescript', 'typescript.tsx'] }
# Markup [[[3
if is_win
# Pack 'iamcco/markdown-preview.nvim', { 'do': "packadd markdown-preview.nvim \| call mkdp#util#install()" }
Pack 'iamcco/markdown-preview.nvim'
endif
# ]]]
# ]]]
Pack 'SirVer/ultisnips'
Pack 'honza/vim-snippets', { 'type': 'opt' }
#]]]
plugpac#End()
# vim:fdm=marker:fmr=[[[,]]]:ft=vim