diff --git a/my_snippets/html.lua b/my_snippets/html.lua new file mode 100644 index 0000000..70dc6da --- /dev/null +++ b/my_snippets/html.lua @@ -0,0 +1,33 @@ +-- 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" + }, + fmt( + [[ +
+ +
+ ]], + { + i(1) + }, + { repeat_duplicates = true } + ) + ) +}