typst: misc

- add more autopairs symbols
- add general template
This commit is contained in:
dogeystamp 2023-07-10 20:29:43 -04:00
parent dc324b5817
commit 3fee59fd89
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
2 changed files with 9 additions and 1 deletions

View File

@ -29,4 +29,4 @@ function TypstWatch()
endfunc
nnoremap <silent><leader>fc :call TypstWatch()<cr>
au Filetype typst let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '$':'$'}
au Filetype typst let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '$':'$', "```" : "```", "`": "`"}

View File

@ -34,6 +34,14 @@ snippet algs "template for compsci notes" bi
endsnippet
snippet general "general template" bi
#import "/templates/general.typ": template, lref
#show: template.with(
title: "$1",
)
endsnippet
snippet math_prob "template for math problems" bi
#import "/templates/math_prob.typ": template, lref
#show: template.with(