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()" }), + }) +}