diff --git a/.config/nvim/snippets/asciidoc.lua b/.config/nvim/snippets/asciidoc.lua new file mode 100644 index 0000000..6597952 --- /dev/null +++ b/.config/nvim/snippets/asciidoc.lua @@ -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) })) + +}