From 03c63bf3bb3d2c93dac0bb481a7be6b4251c3e6e Mon Sep 17 00:00:00 2001 From: talha <-> Date: Sat, 6 Dec 2025 15:09:52 +0500 Subject: Added snippet, minor updates to config --- after/ftplugin/html.lua | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'after') diff --git a/after/ftplugin/html.lua b/after/ftplugin/html.lua index 3a318c8..fc89319 100644 --- a/after/ftplugin/html.lua +++ b/after/ftplugin/html.lua @@ -6,15 +6,15 @@ function Snippets(snipType, value) elseif snipType == "tag" then snippet = string.format("<%s>", value, value) elseif snipType == "linebreak" then - snippet = [[
]] + snippet = [[
]] elseif snipType == "hrline" then - snippet = [[
]] + snippet = [[
]] elseif snipType == "link" then snippet = string.format([[%s]], value["url"], value["label"] ) elseif snipType == "pieces" then - if value == "document" then + if value == "init" then snippet = [[ @@ -34,6 +34,18 @@ html { } ]] + elseif value == "cjHeader" then + snippet = string.format([[ +
+

_title_

+

+ _subtitle_
+ %s
+ The Cursory Journal +


+

+
+ ]], os.date("%Y/%m/%d")) end end return snippet @@ -84,6 +96,7 @@ vim.keymap.set('i', "", function() JumpInTag() end, {remap=true}) + vim.keymap.set('i', "", function() dt = os.date("%Y/%m/%d") WriteText(dt) -- cgit v1.2.3