From 694ef949b4f94a702dbdb4eedef2ed95b23636db Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Wed, 2 Aug 2023 16:26:13 +0200 Subject: [PATCH] snippets: add an HTML snippets for MC Co-Authored-by: iGor milhit --- my_snippets/html.lua | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 my_snippets/html.lua diff --git a/my_snippets/html.lua b/my_snippets/html.lua new file mode 100644 index 0000000..ce55d9c --- /dev/null +++ b/my_snippets/html.lua @@ -0,0 +1,34 @@ +-- My HTML snippets + +-- Set the local variables (shortcuts) +local ls = require("luasnip") +local s = ls.snippet +local i = ls.insert_node +local fmt = require("luasnip.extras.fmt").fmt + +return { + s( + { + trig = "mcim", + name = "Main article structure for MC portal", + dscr = "Insert an HTML structure to add bibliographic description on the clinical medicine portal" + }, + -- Below, the duplicate of brackets is for escaping delimiters + fmt( + [[ +
+ +
+ ]], + { + i(1, "Class identifier") + }, + { + repeat_duplicates = true + } + ) + ) +}