diff --git a/dot-config/vim/lsp/servers.vim b/dot-config/vim/lsp/servers.vim index a2fe2bd..c60e755 100644 --- a/dot-config/vim/lsp/servers.vim +++ b/dot-config/vim/lsp/servers.vim @@ -89,6 +89,16 @@ const lspServers = [ install: 'brew install typescript-language-server', }, + { + name: 'typst-lsp', + filetype: 'typst', + path: exepath('typst-lsp'), + initializationOptions: { + exportPdf: 'onType', + }, + install: 'cargo install typst-lsp', + }, + { name: 'vim-language-server', filetype: 'vim', diff --git a/dot-config/vim/plugins.vim b/dot-config/vim/plugins.vim index 95c5751..2cb708f 100644 --- a/dot-config/vim/plugins.vim +++ b/dot-config/vim/plugins.vim @@ -171,6 +171,11 @@ minpac#add('fladson/vim-kitty') # PHPStan config file in my case. minpac#add('fpob/nette.vim') +# Syntax highlighting and other minor niceties for Typst source. Nothing too +# exciting: we also rely on communicating with typst-lsp for full language +# support functionality. +minpac#add('kaarmu/typst.vim') + # Really good semantic folding for YAML and YAML-like files. If you're # curious: https://pedrohdz.com/posts/programming/yaml_vim_folds/ minpac#add('pedrohdz/vim-yaml-folds')