@@ -14,6 +14,14 @@ if !exists("g:vmt_dont_insert_fence")
14
14
let g: vmt_dont_insert_fence = 0
15
15
endif
16
16
17
+ if ! exists (" g:vmt_list_item_char" )
18
+ let g: vmt_list_item_char = ' -'
19
+ endif
20
+
21
+ if ! exists (" g:vmt_list_indent_text" )
22
+ let g: vmt_list_indent_text = ' '
23
+ endif
24
+
17
25
if ! exists (" g:vmt_cycle_list_item_markers" )
18
26
let g: vmt_cycle_list_item_markers = 0
19
27
endif
@@ -180,7 +188,7 @@ endfunction
180
188
function ! s: GenToc (markdownStyle)
181
189
let l: headingLines = <SID> GetHeadingLines ()
182
190
let l: levels = []
183
- let l: listItemChars = [' * ' ]
191
+ let l: listItemChars = [g: vmt_list_item_char ]
184
192
185
193
let g: GFMHeadingIds = {}
186
194
@@ -195,7 +203,7 @@ function! s:GenToc(markdownStyle)
195
203
endif
196
204
197
205
if g: vmt_cycle_list_item_markers == 1
198
- let l: listItemChars + = [' -' , ' +' ]
206
+ let l: listItemChars = [' * ' , ' -' , ' +' ]
199
207
endif
200
208
201
209
let l: i = 0
@@ -228,6 +236,9 @@ function! s:GenToc(markdownStyle)
228
236
endfunction
229
237
230
238
function ! s: GetIndentText ()
239
+ if ! empty (g: vmt_list_indent_text )
240
+ return g: vmt_list_indent_text
241
+ endif
231
242
if &expandtab
232
243
return repeat (" " , &shiftwidth )
233
244
else
0 commit comments