summaryrefslogtreecommitdiffstats
path: root/lua/Snippets
diff options
context:
space:
mode:
authorNanderty <psopka@sopka.ch>2025-02-03 23:48:03 +0100
committerNanderty <psopka@sopka.ch>2025-02-03 23:48:03 +0100
commit6374db8ab535c1a56b7a064ef474580794b46dc1 (patch)
tree86dd8b61c2ffcf7a8cb80bea2723b8a7770d25e7 /lua/Snippets
parent7c730479e2e44e74d87be0d7c34dfaef96f9a6e1 (diff)
downloadneovim-config-6374db8ab535c1a56b7a064ef474580794b46dc1.tar.gz
neovim-config-6374db8ab535c1a56b7a064ef474580794b46dc1.tar.bz2
neovim-config-6374db8ab535c1a56b7a064ef474580794b46dc1.zip
Groundwork for html snippets
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)
+ }
+ )
+ ),
+
+}