Files
org-vim/runtime/compiler/typst.vim
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
609 B
VimL
Raw Normal View History

2024-07-15 20:00:48 +02:00
" Vim compiler file
" Language: Typst
" Previous Maintainer: Gregory Anders
" Maintainer: Luca Saccarola <github.e41mv@aleeas.com>
2025-03-11 21:35:48 +01:00
" Based On: https://github.com/kaarmu/typst.vim
" Last Change: 2024 Dec 09
2025-03-11 21:35:48 +01:00
" 2025 Mar 11 by the Vim Project (add comment for Dispatch)
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, '\ ')