nvim: add asciidoc snippet

This commit is contained in:
tastytea 2022-08-20 03:34:21 +02:00
parent bc4b23d2a5
commit 1dc8caed67
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -0,0 +1,16 @@
local s = require("luasnip.nodes.snippet").S
local i = require("luasnip.nodes.insertNode").I
local fmt = require("luasnip.extras.fmt").fmt
return {
s({ trig = 'source',
name = 'source code block',
dscr = 'Insert a source code block' },
fmt([[
[source,{language}]
--------------------------------------------------------------------------------
{cursor}
--------------------------------------------------------------------------------
]] , { language = i(1, 'shell'), cursor = i(0) }))
}