From e41b9980231303f6500d4616edfe836589d7d873 Mon Sep 17 00:00:00 2001 From: Squibid Date: Sat, 14 Feb 2026 10:12:43 -0500 Subject: [PATCH] typst --- after/ftplugin/typst.lua | 1 + lua/snippets/typst.lua | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 after/ftplugin/typst.lua create mode 100644 lua/snippets/typst.lua diff --git a/after/ftplugin/typst.lua b/after/ftplugin/typst.lua new file mode 100644 index 0000000..c642643 --- /dev/null +++ b/after/ftplugin/typst.lua @@ -0,0 +1 @@ +vim.cmd.setlocal("textwidth=80") diff --git a/lua/snippets/typst.lua b/lua/snippets/typst.lua new file mode 100644 index 0000000..6caa357 --- /dev/null +++ b/lua/snippets/typst.lua @@ -0,0 +1,9 @@ +dofile(core.snippets) + +return { + s("title", { + t("#set document(title: ["), + i(1, "theTitle"), + t({ "])", "#title()" }), + }) +}