From 952cc4300e1ab28a96df5abfb0a1ff426a58a38d Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sun, 4 Jan 2026 23:39:39 +0900 Subject: updates --- .../TheSiahxyz/lua/TheSiahxyz/snippets/diary.lua | 30 ++++++++++++++++++++++ .../lua/TheSiahxyz/snippets/recordings.lua | 30 ---------------------- 2 files changed, 30 insertions(+), 30 deletions(-) create mode 100644 mac/.config/TheSiahxyz/lua/TheSiahxyz/snippets/diary.lua delete mode 100644 mac/.config/TheSiahxyz/lua/TheSiahxyz/snippets/recordings.lua (limited to 'mac/.config/TheSiahxyz/lua') diff --git a/mac/.config/TheSiahxyz/lua/TheSiahxyz/snippets/diary.lua b/mac/.config/TheSiahxyz/lua/TheSiahxyz/snippets/diary.lua new file mode 100644 index 0000000..90528a1 --- /dev/null +++ b/mac/.config/TheSiahxyz/lua/TheSiahxyz/snippets/diary.lua @@ -0,0 +1,30 @@ +local ls = require("luasnip") + +local s = ls.snippet +local i = ls.insert_node +local f = ls.function_node + +local fmt = require("luasnip.extras.fmt").fmta + +local diary_snippet = s( + "diary", + fmt( + [[--- +title: +date: <date> +--- + +<story> +]], + { + title = i(1, "My Journal"), + date = f(function() + return os.date("%Y-%m-%d") + end, {}), + story = i(3), + } + ) +) + +ls.add_snippets("markdown", { diary_snippet }) +ls.add_snippets("quarto", { diary_snippet }) diff --git a/mac/.config/TheSiahxyz/lua/TheSiahxyz/snippets/recordings.lua b/mac/.config/TheSiahxyz/lua/TheSiahxyz/snippets/recordings.lua deleted file mode 100644 index 9ce9124..0000000 --- a/mac/.config/TheSiahxyz/lua/TheSiahxyz/snippets/recordings.lua +++ /dev/null @@ -1,30 +0,0 @@ -local ls = require("luasnip") - -local s = ls.snippet -local i = ls.insert_node -local f = ls.function_node - -local fmt = require("luasnip.extras.fmt").fmta - -local recordings_snippet = s( - "recordings", - fmt( - [[--- -title: <title> -date: <date> ---- - -<story> -]], - { - title = i(1, "My Journal"), - date = f(function() - return os.date("%Y-%m-%d") - end, {}), - story = i(3), - } - ) -) - -ls.add_snippets("markdown", { recordings_snippet }) -ls.add_snippets("quarto", { recordings_snippet }) -- cgit v1.2.3