From 23de12baba9fbfc4ca24581b37c374aa5345cc25 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Mon, 25 Nov 2024 13:30:37 +0100 Subject: update nvim config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- .vim/snippets/html.lua | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .vim/snippets/html.lua (limited to '.vim/snippets/html.lua') diff --git a/.vim/snippets/html.lua b/.vim/snippets/html.lua new file mode 100644 index 0000000..07c2c09 --- /dev/null +++ b/.vim/snippets/html.lua @@ -0,0 +1,51 @@ +---@diagnostic disable: undefined-global +return { + s( + 'html:5', + fmt( + [[ + + + + + + + + + + + + {title} + + + + {body} + + + + ]], + { + title = i(1, 'my title'), + style = i(2, 'style.css'), + script = i(3, 'main.js'), + body = i(0), + } + ) + ), + s('anchor', fmt([[{}]], { i(1), i(2) })), + s( + 'journal', + fmt( + [[ +
+

{}

+

{}

+
+ ]], + { + i(1, os.date('%Y-%m-%d, %a')), + i(0), + } + ) + ), +} -- cgit 1.4.1