From c56d5a2002ae2e693a8115176e070b3004fdf187 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Salinas Date: Wed, 16 Jul 2025 22:24:20 -0400 Subject: [PATCH] luasnippets: add PTCG snippets --- luasnippets/markdown.lua | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/luasnippets/markdown.lua b/luasnippets/markdown.lua index 2140cde..7c22dcd 100644 --- a/luasnippets/markdown.lua +++ b/luasnippets/markdown.lua @@ -21,11 +21,6 @@ ls.add_snippets(nil, { end, {}), }) ), - }, -}) - -ls.add_snippets(nil, { - markdown = { snip( { trig = "fig", @@ -38,11 +33,6 @@ ls.add_snippets(nil, { alt = insert(3), }) ), - }, -}) - -ls.add_snippets(nil, { - markdown = { snip( { trig = "gal", @@ -53,11 +43,6 @@ ls.add_snippets(nil, { inner = insert(1), }) ), - }, -}) - -ls.add_snippets(nil, { - markdown = { snip( { trig = "kbd", @@ -68,5 +53,25 @@ ls.add_snippets(nil, { key = insert(1), }) ), + snip( + { + trig = "ref", + namr = "zola_ptcg_ref", + dscr = "Zola PTCG reference shortcode", + }, + fmta("{{ptcg_ref(id=\"\")}}", { + id = insert(1), + }) + ), + snip( + { + trig = "card", + namr = "zola_ptcg_ref", + dscr = "Zola PTCG reference shortcode", + }, + fmta("{{ ptcg_card(id=\"\") }}\n", { + id = insert(1), + }) + ), }, })