typst.vim 609 B

12345678910111213141516171819
  1. " Vim compiler file
  2. " Language: Typst
  3. " Previous Maintainer: Gregory Anders
  4. " Maintainer: Luca Saccarola <github.e41mv@aleeas.com>
  5. " Based On: https://github.com/kaarmu/typst.vim
  6. " Last Change: 2024 Dec 09
  7. " 2025 Mar 11 by the Vim Project (add comment for Dispatch)
  8. if exists('current_compiler')
  9. finish
  10. endif
  11. let current_compiler = get(g:, 'typst_cmd', 'typst')
  12. " With `--diagnostic-format` we can use the default errorformat
  13. let s:makeprg = [current_compiler, 'compile', '--diagnostic-format', 'short', '%:S']
  14. " CompilerSet makeprg=typst
  15. execute 'CompilerSet makeprg=' . join(s:makeprg, '\ ')