nvim: update typst stuff
typst got updated and now it has TYPST_ROOT. pretty useful
This commit is contained in:
parent
18d2ffdd4b
commit
de1e3e5f56
@ -1,5 +1,5 @@
|
||||
snippet problem "template for problem notes" bi
|
||||
#import "../templates/problems.typ": template, source_code, status
|
||||
#import "/templates/problems.typ": template, source_code, status, lref
|
||||
#show: template.with(
|
||||
problem_url: "$1",
|
||||
title: "$2",
|
||||
@ -9,7 +9,7 @@ snippet problem "template for problem notes" bi
|
||||
endsnippet
|
||||
|
||||
snippet sfd "template for lecture notes" bi
|
||||
#import "../../../templates/sfd.typ": template
|
||||
#import "/templates/sfd.typ": template, lref
|
||||
#show: template.with(
|
||||
lecture_url: "$1",
|
||||
title: "$2",
|
||||
@ -18,7 +18,7 @@ snippet sfd "template for lecture notes" bi
|
||||
endsnippet
|
||||
|
||||
snippet contest "template for contest problems" bi
|
||||
#import "../../templates/contest.typ": template, source_code, status
|
||||
#import "/templates/contest.typ": template, source_code, status, lref
|
||||
#show: template.with(
|
||||
title: "$1",
|
||||
stat: "${2:incomplete}",
|
||||
@ -27,7 +27,7 @@ snippet contest "template for contest problems" bi
|
||||
endsnippet
|
||||
|
||||
snippet algs "template for compsci notes" bi
|
||||
#import "../templates/algs.typ": template, source_code
|
||||
#import "/templates/algs.typ": template, source_code, lref
|
||||
#show: template.with(
|
||||
title: "$1",
|
||||
)
|
||||
@ -35,7 +35,7 @@ snippet algs "template for compsci notes" bi
|
||||
endsnippet
|
||||
|
||||
snippet math_prob "template for math problems" bi
|
||||
#import "../../../templates/math_prob.typ": template
|
||||
#import "/templates/math_prob.typ": template, lref
|
||||
#show: template.with(
|
||||
title: "$1",
|
||||
)
|
||||
@ -43,7 +43,7 @@ snippet math_prob "template for math problems" bi
|
||||
endsnippet
|
||||
|
||||
snippet proj "template for project documents" bi
|
||||
#import "../../templates/proj.typ": template
|
||||
#import "/templates/proj.typ": template, lref
|
||||
#show: template.with(
|
||||
title: "$1",
|
||||
)
|
||||
@ -58,6 +58,10 @@ snippet link "link" w
|
||||
#link("${1}")[${2}]
|
||||
endsnippet
|
||||
|
||||
snippet lref "refer to another knowledge base doc" w
|
||||
#lref("/${1}")[${2}]
|
||||
endsnippet
|
||||
|
||||
snippet fig "create new figure" bi
|
||||
#figure(
|
||||
image("fig/`!v expand("%:r")`/$1.svg"),
|
||||
|
@ -69,6 +69,9 @@ else
|
||||
. "$XDG_CONFIG_HOME"/dot_profile
|
||||
fi
|
||||
|
||||
# Typst root
|
||||
export TYPST_ROOT="$HOME/nt"
|
||||
|
||||
# Add .local/bin to path
|
||||
export PATH="$PATH":~/.local/bin
|
||||
export PATH="$PATH":~/.local/bin/deskutils
|
||||
|
Loading…
Reference in New Issue
Block a user