From e1b6eda4aa29bc3ef0214c9b842661cb225ed73b Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Tue, 15 Aug 2023 21:12:57 -0400 Subject: [PATCH] nvim: typst "index" template --- src/.config/nvim/ultisnips/typst.snippets | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/.config/nvim/ultisnips/typst.snippets b/src/.config/nvim/ultisnips/typst.snippets index 078d57a..51c0a10 100644 --- a/src/.config/nvim/ultisnips/typst.snippets +++ b/src/.config/nvim/ultisnips/typst.snippets @@ -8,6 +8,14 @@ snippet problem "template for problem notes" bi endsnippet +snippet index "template for index documents" bi +#import "/templates/index.typ": template, lref +#show: template.with( + title: "$1", +) + +endsnippet + snippet sfd "template for lecture notes" bi #import "/templates/sfd.typ": template, lref #show: template.with(