From 1aa82e083eec7d7f142efde431cae58e3f30d1b1 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Sat, 13 May 2023 12:25:14 -0400 Subject: [PATCH] nvim: add more typst snippets --- src/.config/nvim/ultisnips/typst.snippets | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/.config/nvim/ultisnips/typst.snippets b/src/.config/nvim/ultisnips/typst.snippets index c8f1449..a9e9ff3 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 algs "template for compsci notes" bi +#import "../templates/algs.typ": template, source_code +#show: template.with( + title: "$1", +) + +endsnippet + snippet math_prob "template for math problems" bi #import "../../../templates/math_prob.typ": template #show: template.with( @@ -23,6 +31,10 @@ snippet im "inline math" w \$${1:${VISUAL}}\$ endsnippet +snippet link "link" w +#link("${1}")[${2}] +endsnippet + snippet fig "create new figure" bi #figure( image("fig/`!v expand("%:r")`/$1.svg"),