typst.vim 521 B

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