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