Fix box and bbox snippets outside the first column
This commit is contained in:
parent
89427d7d42
commit
6a679df97f
@ -78,10 +78,12 @@ endglobal
|
|||||||
snippet box "A nice box with the current comment symbol" b
|
snippet box "A nice box with the current comment symbol" b
|
||||||
`!p
|
`!p
|
||||||
box = make_box(len(t[1]))
|
box = make_box(len(t[1]))
|
||||||
snip.rv = box[0] + '\n' + box[1]
|
snip.rv = box[0]
|
||||||
|
snip += box[1]
|
||||||
`${1:content}`!p
|
`${1:content}`!p
|
||||||
box = make_box(len(t[1]))
|
box = make_box(len(t[1]))
|
||||||
snip.rv = box[2] + '\n' + box[3]`
|
snip.rv = box[2]
|
||||||
|
snip += box[3]`
|
||||||
$0
|
$0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
@ -89,10 +91,12 @@ snippet bbox "A nice box over the full width" b
|
|||||||
`!p
|
`!p
|
||||||
width = int(vim.eval("&textwidth")) or 71
|
width = int(vim.eval("&textwidth")) or 71
|
||||||
box = make_box(len(t[1]), width)
|
box = make_box(len(t[1]), width)
|
||||||
snip.rv = box[0] + '\n' + box[1]
|
snip.rv = box[0]
|
||||||
|
snip += box[1]
|
||||||
`${1:content}`!p
|
`${1:content}`!p
|
||||||
box = make_box(len(t[1]), width)
|
box = make_box(len(t[1]), width)
|
||||||
snip.rv = box[2] + '\n' + box[3]`
|
snip.rv = box[2]
|
||||||
|
snip += box[3]`
|
||||||
$0
|
$0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user