blob: 33e55818e9ad9be787510133bfeeb98fbd761774 [file] [log] [blame]
Gregory Anders1cc4cae2024-07-15 20:00:48 +02001" 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
7if exists('current_compiler')
8 finish
9endif
10let current_compiler = get(g:, 'typst_cmd', 'typst')
11
12" With `--diagnostic-format` we can use the default errorformat
13let s:makeprg = [current_compiler, 'compile', '--diagnostic-format', 'short', '%:S']
14
15execute 'CompilerSet makeprg=' . join(s:makeprg, '\ ')