From 6374db8ab535c1a56b7a064ef474580794b46dc1 Mon Sep 17 00:00:00 2001 From: Nanderty Date: Mon, 3 Feb 2025 23:48:03 +0100 Subject: Groundwork for html snippets --- lua/Snippets/html/environments.lua | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 lua/Snippets/html/environments.lua (limited to 'lua') 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( + [[ + <

> + <> + <

> + ]], + { + i(1), + } + ), + { condition = helper.line_begin } + ), + + s({ trig = 'lnk', snippetType = 'autosnippet' }, + fmta( + [[<><><>]], + { + i(1), + i(2) + } + ) + ), + +} -- cgit v1.2.3