-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpack.vim
193 lines (175 loc) · 5.8 KB
/
pack.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
vim9script
const is_ssh = $SSH_CONNECTION != ""
const is_win = has('win32')
const package_name = g:minimal_plugins ? 'minimal' : 'minpac'
const minpac_dir = $'{$v}/pack/{package_name}/opt/minpac'
if !isdirectory(minpac_dir)
silent! execute printf('!git clone https://github.com/k-takata/minpac.git %s', minpac_dir)
endif
g:plugpac_plugin_conf_path = $v .. '/rc'
g:plugpac_default_type = 'delay'
# plugins [[[1
# Builtin [[[2
if !is_win
# :Man <leader>K
runtime! ftplugin/man.vim
endif
packadd! cfilter
packadd! helptoc
# ]]]
import autoload "utils.vim"
const AfterFun = () => {
utils.MapMeta()
}
call plugpac#Begin({
# progress_open: tab',
quiet: g:minimal_plugins,
package_name: package_name,
status_open: 'vertical',
verbose: 2,
after_hook: AfterFun,
})
Pack 'k-takata/minpac', {'type': 'opt'}
Pack 'lifepillar/vim-gruvbox8', { 'type': 'opt' }
if is_ssh
Pack 'ojroques/vim-oscyank', { 'type': 'delay', 'rev': 'main' } # <leader>c <leader>cc <A-w>
endif
if v:version >= 901 && !getcompletion('comment', 'packadd')->empty()
autocmd_add([{
event: 'VimEnter',
pattern: '*',
group: 'PlugPac',
once: true,
cmd: 'timer_start(1, (_) => execute("packadd comment"))',
}])
else
Pack 'tomtom/tcomment_vim', { 'type': 'delay' }
endif
Pack 'bootleq/vim-cycle'
Pack 'itchyny/lightline.vim'
Pack 'machakann/vim-sandwich'
if g:minimal_plugins
g:loaded_netrw = 0
g:loaded_netrwPlugin = 0
packadd matchit
else
# Lab [[[2
# Pack 'dyng/ctrlsf.vim'
Pack 'nickspoons/vim-movefast'
Pack 'ubaldot/vim9-conversion-aid'
Pack 'Konfekt/vim-alias'
Pack 'dstein64/vim-startuptime', { 'on': 'StartupTime' }
Pack 'andymass/vim-matchup'
Pack 'chrisbra/vim_faq'
# Pack 'yegappan/mru'
Pack 'yegappan/taglist'
Pack 'girishji/scope.vim'
# Pack 'yegappan/fileselect'
# Pack 'hahdookin/miniterm.vim'
Pack 'bennyyip/miniterm.vim'
Pack 'Shougo/neosnippet.vim'
Pack 'honza/vim-snippets', { 'type': 'opt' }
# Enhance [[[2
Pack 'airblade/vim-rooter', { 'type': 'start' } # <leader>r
Pack 'mhinz/vim-startify', { 'type': 'start' }
# Pack 'Yggdroot/LeaderF', { 'do': "packadd LeaderF \| LeaderfInstallCExtension" }
Pack 'bennyyip/tasks.vim'
# Pack 'romainl/vim-qf' # { } H L
Pack 'habamax/vim-shout'
Pack 'tpope/vim-eunuch'
Pack 'habamax/vim-dir', { 'type': 'start' }
if has("patch-9.0.1811")
autocmd_add([{
event: 'VimEnter',
pattern: '*',
group: 'PlugPac',
once: true,
cmd: 'timer_start(1, (_) => execute("packadd editorconfig"))',
}])
else
Pack 'editorconfig/editorconfig-vim'
endif
Pack 'AndrewRadev/linediff.vim', { 'on': 'Linediff' } # <C-g>d
Pack 'itchyny/vim-cursorword'
Pack 'lfv89/vim-interestingwords'
Pack 'luochen1990/rainbow'
Pack 'mbbill/undotree', { 'on': 'UndotreeToggle' }
Pack 'mhinz/vim-sayonara', { 'on': 'Sayonara' }
Pack 'tpope/vim-characterize'
Pack 'tpope/vim-repeat'
Pack 'chrisbra/NrrwRgn' # :NR :NW :NRV :WR
Pack 'justinmk/vim-gtfo' # gof got
# Pack 'bennyyip/vim-highlightedyank'
Pack 'ubaldot/vim-highlight-yanked'
if !is_win
Pack 'lilydjwg/fcitx.vim'
endif
# Motion and Edit [[[2
Pack 'machakann/vim-swap' # g, g. gs gS
Pack 'bennyyip/vim-debugstring' # <leader>ds
Pack 'tommcdo/vim-lion' # <count>gl<motion><char>
Pack 'svermeulen/vim-yoink' # :Yanks
Pack 'tommcdo/vim-exchange', { 'on': '<Plug>(Exchange)' } # gx gxx gxg
Pack 'tpope/vim-abolish'
Pack 'tpope/vim-apathy' # 'path'
Pack 'Konfekt/vim-scratchpad'
# Pack 'michaeljsmith/vim-indent-object'
Pack 'justinmk/vim-sneak', { 'on': ['<Plug>Sneak_S', '<Plug>Sneak_s', '<Plug>Sneak_f', '<Plug>Sneak_F', '<Plug>Sneak_t'] }
Pack 'markonm/traces.vim'
# Pack 'monkoose/vim9-stargate'
# VCS [[[2
Pack 'Eliot00/git-lens.vim'
Pack 'junegunn/gv.vim', { 'on': 'GV' }
Pack 'rhysd/conflict-marker.vim' # [x ]x
Pack 'tommcdo/vim-fugitive-blame-ext'
Pack 'tpope/vim-fugitive', { type: 'start' }
# Pack 'tpope/vim-rhubarb'
# Pack 'errael/splice9', { type: 'start', frozen: true }
# Language [[[2
if executable('ctags')
Pack 'ludovicchabant/vim-gutentags', { type: 'start' }
endif
# Pack 'bennyyip/lsp', { type: 'start', branch: 'dev' }
Pack 'yegappan/lsp', { type: 'start', branch: 'main' }
Pack 'Konfekt/vim-compilers'
# Pack 'Konfekt/vim-formatprgs'
Pack 'girishji/devdocs.vim'
# Pack 'rhysd/devdocs.vim'
Pack 'Shiracamus/vim-syntax-x86-objdump-d'
Pack 'octol/vim-cpp-enhanced-highlight', { 'for': 'cpp' }
Pack 'tikhomirov/vim-glsl', { 'for': 'glsl' }
Pack 'chrisbra/csv.vim', { 'type': 'opt' }
Pack 'pearofducks/ansible-vim'
Pack 'tridactyl/vim-tridactyl'
Pack 'bfrg/vim-jq'
Pack 'bfrg/vim-jqplay'
# Python [[[3
Pack 'meatballs/vim-xonsh'
# Typescript [[[3
# Pack 'leafgarland/typescript-vim', { 'for': 'typescript' }
# Pack 'peitalin/vim-jsx-typescript'
# Web [[[3
Pack 'BourgeoisBear/clrzr'
# Pack 'mattn/emmet-vim', { 'for': ['xml', 'html', 'css', 'javascript', 'typescript', 'typescript.tsx'] }
# Pack 'othree/html5.vim', { 'for': 'html' }
# Pack "hail2u/vim-css3-syntax", { 'for': 'css' }
# 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
# ]]]
# ]]]
endif
plugpac#End()
# plugpac helpers [[[1
import autoload "plugpac_helper.vim" as P
command! PackSummary P.PackSummary()
const PackList = P.PackList
command! -nargs=1 -complete=customlist,PackList PackUrl P.PackUrl(<q-args>)
command! -nargs=1 -complete=customlist,PackList PackDir P.PackDir(<q-args>)
command! -nargs=1 -complete=customlist,PackList PackRc P.PackRc(<q-args>)
command! -nargs=1 -complete=customlist,PackList PackRcPre P.PackRcPre(<q-args>)
command! PackUnusedRC cexpr P.PackUnusedRC()->map((_, x) => $"{x}:1:1: Unused")
# ]]]
# vim:fdm=marker:fmr=[[[,]]]:ft=vim