nvim: add quote snippet for asciidoc

This commit is contained in:
tastytea 2022-12-07 23:52:26 +01:00
parent deebf1e311
commit 32869bceae
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -5,7 +5,7 @@ local fmt = require("luasnip.extras.fmt").fmt
return {
s({ trig = 'source',
name = 'source code block',
dscr = 'Insert a source code block'
dscr = 'insert a source code block'
},
fmt([[
[source,{language}]
@ -15,5 +15,19 @@ return {
]] , {
language = i(1, 'shell'),
cursor = i(0)
})),
s({ trig = 'quote',
name = 'quote block',
descr = 'insert a quote block'
},
fmt([[
[quote,{author},{place}]
________________________________________________________________________________
{cursor}
________________________________________________________________________________
]] , {
author = i(1),
place = i(2),
cursor = i(0)
}))
}