1
0
Fork 0

nvim: change formatting of asciidoc snippets

This commit is contained in:
tastytea 2022-08-20 22:16:24 +02:00
parent 1dc8caed67
commit f959d03c5f
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 6 additions and 3 deletions

View File

@ -5,12 +5,15 @@ 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}]
--------------------------------------------------------------------------------
{cursor}
--------------------------------------------------------------------------------
]] , { language = i(1, 'shell'), cursor = i(0) }))
]] , {
language = i(1, 'shell'),
cursor = i(0)
}))
}