Skip to content

Commit 8b973bc

Browse files
committed
Add asciidoc snippet for video macro
1 parent bac5b51 commit 8b973bc

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

snippets/asciidoc.lua

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
local luasnip = require("luasnip")
2+
local fmt = require("luasnip.extras.fmt").fmt
3+
4+
local s = luasnip.snippet
5+
local t = luasnip.text_node
6+
local i = luasnip.insert_node
7+
8+
luasnip.add_snippets("asciidoc", {
9+
s(
10+
"video",
11+
fmt(
12+
[[
13+
video::{}[youtube,width={},height={}]
14+
]],
15+
{
16+
i(1, "dQw4w9WgXcQ"),
17+
i(2, "640"),
18+
i(3, "480"),
19+
}
20+
)
21+
),
22+
})

0 commit comments

Comments
 (0)