1
0
Fork 0

nvim: add collapsible snippet for asciidoc

This commit is contained in:
tastytea 2022-12-08 18:25:06 +01:00
parent 5952901e06
commit 9a7bc151cc
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 19 additions and 3 deletions

View File

@ -16,6 +16,7 @@ return {
language = i(1, 'shell'), language = i(1, 'shell'),
cursor = i(0) cursor = i(0)
})), })),
s({ trig = 'quote', s({ trig = 'quote',
name = 'quote block', name = 'quote block',
descr = 'insert a quote block' descr = 'insert a quote block'
@ -26,8 +27,23 @@ ________________________________________________________________________________
{cursor} {cursor}
________________________________________________________________________________ ________________________________________________________________________________
]] , { ]] , {
author = i(1), author = i(1, 'author'),
place = i(2), place = i(2, 'place'),
cursor = i(0) cursor = i(0)
})) })),
s({ trig = 'collapsible',
name = 'collapsible block',
descr = 'insert a collapsible block'
},
fmt([[
.{title}
[%collapsible]
================================================================================
{cursor}
================================================================================
]] , {
title = i(1, 'title'),
cursor = i(0)
})),
} }