summaryrefslogtreecommitdiffstats
path: root/lua/Snippets
diff options
context:
space:
mode:
Diffstat (limited to 'lua/Snippets')
-rw-r--r--lua/Snippets/html/environments.lua29
1 files changed, 29 insertions, 0 deletions
diff --git a/lua/Snippets/html/environments.lua b/lua/Snippets/html/environments.lua
new file mode 100644
index 0000000..5a896c6
--- /dev/null
+++ b/lua/Snippets/html/environments.lua
@@ -0,0 +1,29 @@
+local helper = require('Snippets.luasniphelpers')
+
+return {
+
+ s({ trig = 'prg', snippetType = 'autosnippet' },
+ fmta(
+ [[
+ <<p>>
+ <>
+ <</p>>
+ ]],
+ {
+ i(1),
+ }
+ ),
+ { condition = helper.line_begin }
+ ),
+
+ s({ trig = 'lnk', snippetType = 'autosnippet' },
+ fmta(
+ [[<<a href="<>">><><</a>>]],
+ {
+ i(1),
+ i(2)
+ }
+ )
+ ),
+
+}