typst.vim 455 B

12345678910111213141516
  1. " Vim compiler file
  2. " Language: Typst
  3. " Maintainer: Gregory Anders
  4. " Last Change: 2024-07-14
  5. " Based on: https://github.com/kaarmu/typst.vim
  6. if exists('current_compiler')
  7. finish
  8. endif
  9. let current_compiler = get(g:, 'typst_cmd', 'typst')
  10. " With `--diagnostic-format` we can use the default errorformat
  11. let s:makeprg = [current_compiler, 'compile', '--diagnostic-format', 'short', '%:S']
  12. execute 'CompilerSet makeprg=' . join(s:makeprg, '\ ')