File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -78,21 +78,25 @@ endglobal
7878snippet box " A nice box with the current comment symbol" b
7979`!p
8080box = make_box(len (t[1 ]))
81- snip.rv = box[0 ] + ' \n ' + box[1 ]
81+ snip.rv = box[0 ]
82+ snip += box[1 ]
8283` ${1: content } `!p
8384box = make_box(len (t[1 ]))
84- snip.rv = box[2 ] + ' \n ' + box[3 ] `
85+ snip.rv = box[2 ]
86+ snip += box[3 ] `
8587$0
8688endsnippet
8789
8890snippet bbox " A nice box over the full width" b
8991`!p
9092width = int (vim.eval(" &textwidth" )) or 71
9193box = make_box(len (t[1 ]), width)
92- snip.rv = box[0 ] + ' \n ' + box[1 ]
94+ snip.rv = box[0 ]
95+ snip += box[1 ]
9396` ${1: content } `!p
9497box = make_box(len (t[1 ]), width)
95- snip.rv = box[2 ] + ' \n ' + box[3 ] `
98+ snip.rv = box[2 ]
99+ snip += box[3 ] `
96100$0
97101endsnippet
98102
You can’t perform that action at this time.
0 commit comments