From 94c8623995fb8c042faf2012013840bf7a9b3be2 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Sun, 27 Aug 2023 11:14:01 -0400 Subject: [PATCH] nvim: added chem typst template --- src/.config/nvim/ultisnips/typst.snippets | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/.config/nvim/ultisnips/typst.snippets b/src/.config/nvim/ultisnips/typst.snippets index 51c0a10..2440da1 100644 --- a/src/.config/nvim/ultisnips/typst.snippets +++ b/src/.config/nvim/ultisnips/typst.snippets @@ -25,6 +25,21 @@ snippet sfd "template for lecture notes" bi endsnippet +snippet chem "template for chemistry notes" bi +#import "/templates/chem.typ": template, lref +#show: template.with( + title: "$1", +) + +endsnippet + +snippet chbl "chemistry math block" bi +#chem()[$ +$1 +$] +$0 +endsnippet + snippet contest "template for contest problems" bi #import "/templates/contest.typ": template, source_code, status, lref #show: template.with(