-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.toml
258 lines (223 loc) · 7.45 KB
/
main.toml
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
[[plugins]]
repo = '$MYVIMDIR/bundle/gin-preview.vim'
depends = 'vim-gin'
on_cmd = 'GinPreview'
[[plugins]]
repo = '$MYVIMDIR/bundle/vim-operandi'
on_func = 'operandi#'
hook_add = '''
nnoremap ti <Cmd>call operandi#open('myterm')<CR>
nnoremap <Space>; <Cmd>call operandi#open('mycommand')<CR>
nnoremap <Space><Space> <Cmd>call operandi#open('mycommand')<CR>
xnoremap <Space><Space> <Esc><Cmd>call operandi#open('mycommand')<CR><Cmd>call setline(1, "'<,'>")<CR>
'''
[[plugins]]
repo = 'https://github.com/kawarimidoll/autoplay.vim'
[[plugins]]
repo = 'https://github.com/kuuote/mydicts'
if = false
[[plugins]]
repo = 'https://github.com/lambdalisue/vim-fern'
on_cmd = 'Fern'
hook_source = '''
let g:fern#disable_default_mappings = 1
'''
[plugins.ftplugin]
fern = '''
nnoremap <buffer> <nowait> a <Plug>(fern-action-choice)
nnoremap <buffer> <nowait> d <Plug>(fern-action-leave)
nnoremap <buffer> <nowait> h <Plug>(fern-action-collapse)
nnoremap <buffer> <nowait> l <Plug>(fern-action-open-or-expand)
'''
[[plugins]]
repo = 'https://github.com/lambdalisue/vim-gin'
on_cmd = [
'Gin',
]
[plugins.ftplugin]
gin-status = '''
nnoremap <buffer> <nowait> c <Cmd>call p#gin#komitto()<CR>
nnoremap <buffer> <nowait> h <Plug>(gin-action-stage)
nnoremap <buffer> <nowait> l <Plug>(gin-action-unstage)
'''
gitcommit = '''
nnoremap <buffer> ZZ <Cmd>Apply<CR>
'''
[[plugins]]
repo = 'https://github.com/lambdalisue/vim-gina'
on_cmd = 'Gina'
[[plugins]]
repo = 'https://github.com/lambdalisue/vim-kensaku'
# X<dpp-lazy-kensaku_vim>
lazy = 1
hook_source = '''
let g:kensaku_dictionary_cache = '/data/vim/cache/kensaku_dict'
'''
[[plugins]]
repo = 'https://github.com/lambdalisue/vim-mr'
on_event = ['BufReadPre', 'BufWritePre']
hook_source = '''
let g:mr#mru#filename = '/data/mr/mru'
let g:mr#mrw#filename = '/data/mr/mrw'
let g:mr#mrr#filename = '/data/mr/mrr'
let g:mr#mrd#filename = '/data/mr/mrd'
'''
[[plugins]]
repo = 'https://github.com/lambdalisue/vim-suda'
on_cmd = ['SudaRead', 'SudaWrite']
[[plugins]]
repo = 'https://github.com/machakann/vim-sandwich'
on_map = {n = 's'}
lazy = true
hook_add = '''
autocmd vimrc ModeChanged *:*[ovV\x16]* ++once ++nested call dpp#source('vim-sandwich')
'''
hook_source = '''
" 改めてs殺しておく
nnoremap s <Nop>
" https://github.com/yuki-yano/dotfiles/blob/f1b6ac0c2a178177cc546bab19a175a498192e1e/.vim/lua/plugins/coding.lua#L485-L487
" saa( などで空白を含めないようにするやつ
call operator#sandwich#set('add', 'char', 'skip_space', 1)
autocmd vimrc ModeChanged [vV\x16]*:* call operator#sandwich#set('add', 'char', 'skip_space', 1)
autocmd vimrc ModeChanged *:[vV\x16]* call operator#sandwich#set('add', 'char', 'skip_space', 0)
" from https://github.com/nekowasabi/dotfiles/blob/2a06ecd2ef3d0bfed92099b14baa60fbf97bc658/vim_integrate/rc/plugins/vim-sandwich.vim?plain=1#L18-L24
let g:sandwich#recipes = deepcopy(g:sandwich#default_recipes)
let g:sandwich#recipes += [
\ {'buns': ['(', ')'], 'nesting': 1, 'input': ['j(', 'j)', 'jp']},
\ {'buns': ['「', '」'], 'nesting': 1, 'input': ['j[', 'j]', 'jB']},
\ {'buns': ['『', '』'], 'nesting': 1, 'input': ['j{', 'j}', 'jb']},
\ {'buns': ['【', '】'], 'nesting': 1, 'input': ['j<', 'j>', 'jk']},
\ ]
'''
# lua_post_source = '''
# local vimx = require('artemis')
# -- https://github.com/yuki-yano/dotfiles/blob/f1b6ac0c2a178177cc546bab19a175a498192e1e/.vim/lua/plugins/coding.lua#L451-L458
# -- console.log() などをまとめて指定できるやつ
# vimx.g['sandwich#magicchar#f#patterns'] = {
# {
# header = [[\<\%(\h\k*\.\)*\h\k*]],
# bra = '(',
# ket = ')',
# footer = '',
# },
# }
# '''
[[plugins]]
repo = 'https://github.com/mattn/vim-molder'
# サブ環境で使ってるだけなので切っておく
if = false
[[plugins]]
repo = 'https://github.com/rbtnn/vim-layout'
on_cmd = ['LayoutLoad', 'LayoutSave']
on_func = ['layout#']
[[plugins]]
repo = 'https://github.com/Shougo/cmdline.vim'
# ddu-ui-ffに合わせる
hook_add = '''
call cmdline#set_option('border', ['+', '-', '+', '|', '+', '-', '+', '|']->map('[v:val, "DduBorder"]'))
call cmdline#set_option('col', 4)
call cmdline#set_option('row', 0)
call cmdline#set_option('width', &columns - 8 - 2)
autocmd vimrc WinResized * call cmdline#set_option('width', &columns - 8 - 2)
'''
[[plugins]]
repo = 'https://github.com/skk-dev/dict'
if = false
[[plugins]]
repo = 'https://github.com/tani/vim-artemis'
[[plugins]]
repo = 'https://github.com/thinca/vim-localrc'
[[plugins]]
repo = 'https://github.com/thinca/vim-partedit'
on_cmd = 'Partedit'
[[plugins]]
repo = 'https://github.com/thinca/vim-prettyprint'
on_cmd = ['PrettyPrint', 'PP']
on_func = ['PrettyPrint', 'PP']
[[plugins]]
repo = 'https://github.com/thinca/vim-qfreplace'
on_cmd = 'Qfreplace'
[[plugins]]
repo = 'https://github.com/thinca/vim-themis'
[[plugins]]
repo = 'https://github.com/tweekmonster/helpful.vim'
[[plugins]]
repo = 'https://github.com/tyru/capture.vim'
on_cmd = 'Capture'
[[plugins]]
repo = 'https://github.com/uga-rosa/denippet.vim'
lazy = true
denops_wait = false
hook_source = '''
source $MYVIMDIR/conf/plug/denippet.vim
'''
[[plugins]]
repo = 'https://github.com/uga-rosa/estrela.lua'
[[plugins]]
repo = 'https://github.com/vim-denops/denops.vim'
[[plugins]]
repo = 'https://github.com/vim-jp/vimdoc-ja'
hook_add = '''
set helplang=ja
'''
[[plugins]]
# sort_repo = 'skkeleton'
# https://github.com/NI57721/dotfiles/blob/79d2decf4b1e2bf5522c3af5f0ffdefd87b7ff50/.config/vim/rc/dein.toml#L20-L24
# repo = 'kei-s16/skkeleton-azik-kanatable'
repo = 'https://github.com/NI57721/skkeleton-azik-kanatable'
rev = 'feature/delete-some-mappings'
on_source = 'skkeleton'
[[plugins]]
# sort_repo = 'skkeleton'
repo = 'https://github.com/NI57721/skkeleton-state-popup'
hook_add = '''
autocmd vimrc User skkeleton-initialize-post source $MYVIMDIR/conf/plug/skkeleton_state_popup.vim
'''
[[plugins]]
# sort_repo = 'skkeleton'
repo = 'https://github.com/vim-skk/skkeleton'
lazy = true
denops_wait = false
on_cmd = ['SKKAzik', 'SKKTsuki']
hook_add = '''
noremap! ;<Space> <Cmd>call dpp#source(['skkeleton'])<CR><Plug>(skkeleton-enable)
" ref: atusy: normal modeの `<C-J>`をskkeleton-enableにあてちゃうのアリな気がしてきた。特にmarkdownで日本語書きまくってる時とか。"
nnoremap ;<Space> <Cmd>call dpp#source(['skkeleton'])<CR>i<Plug>(skkeleton-enable)
'''
hook_source = '''
source $MYVIMDIR/conf/plug/skkeleton.vim
'''
# /data/newvim/old/conf/plug/skkeleton.lua
#hook_source = '''
#autocmd User DenopsPluginPost:skkeleton call skkeleton#initialize()
#autocmd User skkeleton-enable-pre call s:skkeleton_pre()
#function! s:skkeleton_pre() abort
# if dein#is_sourced('ddc.vim')
# let b:skkeleton_ddc_backup = ddc#custom#get_buffer()
# let sources = get(b:, 'skkeleton_ddc_sources', ['skkeleton'])
# call ddc#custom#patch_buffer('sources', sources)
# call ddc#custom#patch_buffer('specialBufferCompletion', v:true)
# endif
# if dein#is_sourced('nvim-cmp')
# lua require('vimrc.plug.cmp').change_sources('skkeleton')
# endif
#endfunction
#autocmd User skkeleton-disable-pre call s:skkeleton_post()
#function! s:skkeleton_post() abort
# " Restore current sources
# if exists('b:skkeleton_ddc_backup')
# call ddc#custom#set_buffer(b:skkeleton_ddc_backup)
# endif
# if dein#is_sourced('nvim-cmp')
# lua require('vimrc.plug.cmp').change_sources('default')
# endif
#endfunction
#
#'''
[[plugins]]
repo = 'tani/dmacro.vim'
if = 'has("nvim-0.10") || has("patch-9.1.0597")'
hook_add = '''
inoremap <C-y> <Plug>(dmacro-play-macro)
nnoremap <C-y> <Plug>(dmacro-play-macro)
'''