2024-07-15 20:00:48 +02:00
|
|
|
" Vim compiler file
|
|
|
|
|
" Language: Typst
|
2025-08-05 19:38:12 +02:00
|
|
|
" Previous Maintainer: Luca Saccarola <github.e41mv@aleeas.com>
|
|
|
|
|
" Maintainer: This runtime file is looking for a new maintainer.
|
2025-03-11 21:35:48 +01:00
|
|
|
" Based On: https://github.com/kaarmu/typst.vim
|
2025-08-05 19:38:12 +02:00
|
|
|
" Last Change: 2025 Aug 05
|
2024-07-15 20:00:48 +02:00
|
|
|
|
|
|
|
|
if exists('current_compiler')
|
|
|
|
|
finish
|
|
|
|
|
endif
|
|
|
|
|
let current_compiler = get(g:, 'typst_cmd', 'typst')
|
|
|
|
|
|
|
|
|
|
" With `--diagnostic-format` we can use the default errorformat
|
|
|
|
|
let s:makeprg = [current_compiler, 'compile', '--diagnostic-format', 'short', '%:S']
|
|
|
|
|
|
2025-03-11 21:35:48 +01:00
|
|
|
" CompilerSet makeprg=typst
|
2024-07-15 20:00:48 +02:00
|
|
|
execute 'CompilerSet makeprg=' . join(s:makeprg, '\ ')
|