diff --git a/src/.config/nvim/typst.vim b/src/.config/nvim/typst.vim index 22a0873..2605265 100644 --- a/src/.config/nvim/typst.vim +++ b/src/.config/nvim/typst.vim @@ -29,4 +29,4 @@ function TypstWatch() endfunc nnoremap fc :call TypstWatch() -au Filetype typst let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '$':'$'} +au Filetype typst let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '$':'$', "```" : "```", "`": "`"} diff --git a/src/.config/nvim/ultisnips/typst.snippets b/src/.config/nvim/ultisnips/typst.snippets index 3f21fce..078d57a 100644 --- a/src/.config/nvim/ultisnips/typst.snippets +++ b/src/.config/nvim/ultisnips/typst.snippets @@ -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(