From 6ee93aa5d7e84c02f1ed596d9eeed4b9de00c2cf Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Mon, 28 Aug 2023 19:30:21 -0400 Subject: [PATCH] nvim: fix typst chem snippets --- src/.config/nvim/ultisnips/typst.snippets | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/.config/nvim/ultisnips/typst.snippets b/src/.config/nvim/ultisnips/typst.snippets index 2440da1..a16c25b 100644 --- a/src/.config/nvim/ultisnips/typst.snippets +++ b/src/.config/nvim/ultisnips/typst.snippets @@ -26,18 +26,18 @@ snippet sfd "template for lecture notes" bi endsnippet snippet chem "template for chemistry notes" bi -#import "/templates/chem.typ": template, lref +#import "/templates/chem.typ": template, lref, chem #show: template.with( title: "$1", ) endsnippet -snippet chbl "chemistry math block" bi -#chem()[$ -$1 -$] -$0 +snippet chi "chemistry math inline" w +#chem()[$$1$] +endsnippet +snippet chbl "chemistry math block" w +#chem(block: true)[$$1$] endsnippet snippet contest "template for contest problems" bi