typst: misc
- add more autopairs symbols - add general template
This commit is contained in:
parent
dc324b5817
commit
3fee59fd89
@ -29,4 +29,4 @@ function TypstWatch()
|
|||||||
endfunc
|
endfunc
|
||||||
nnoremap <silent><leader>fc :call TypstWatch()<cr>
|
nnoremap <silent><leader>fc :call TypstWatch()<cr>
|
||||||
|
|
||||||
au Filetype typst let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '$':'$'}
|
au Filetype typst let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '$':'$', "```" : "```", "`": "`"}
|
||||||
|
@ -34,6 +34,14 @@ snippet algs "template for compsci notes" bi
|
|||||||
|
|
||||||
endsnippet
|
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
|
snippet math_prob "template for math problems" bi
|
||||||
#import "/templates/math_prob.typ": template, lref
|
#import "/templates/math_prob.typ": template, lref
|
||||||
#show: template.with(
|
#show: template.with(
|
||||||
|
Loading…
Reference in New Issue
Block a user