nvim: add more typst snippets
This commit is contained in:
parent
4f4214fc12
commit
1aa82e083e
@ -8,6 +8,14 @@ snippet problem "template for problem notes" bi
|
|||||||
|
|
||||||
endsnippet
|
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
|
snippet math_prob "template for math problems" bi
|
||||||
#import "../../../templates/math_prob.typ": template
|
#import "../../../templates/math_prob.typ": template
|
||||||
#show: template.with(
|
#show: template.with(
|
||||||
@ -23,6 +31,10 @@ snippet im "inline math" w
|
|||||||
\$${1:${VISUAL}}\$
|
\$${1:${VISUAL}}\$
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
snippet link "link" w
|
||||||
|
#link("${1}")[${2}]
|
||||||
|
endsnippet
|
||||||
|
|
||||||
snippet fig "create new figure" bi
|
snippet fig "create new figure" bi
|
||||||
#figure(
|
#figure(
|
||||||
image("fig/`!v expand("%:r")`/$1.svg"),
|
image("fig/`!v expand("%:r")`/$1.svg"),
|
||||||
|
Loading…
Reference in New Issue
Block a user