Files
dotfiles/nvim/.config/nvim/compiler/typst.vim
T
roodletoof 752cde27f2 remove current_compiler check.
that check is for the standard implementations, not mine
2026-09-29 19:00:35 +02:00

15 lines
538 B
VimL

" Vim compiler file
" Language: Typst
" Previous Maintainer: Luca Saccarola <github.e41mv@aleeas.com>
" Maintainer: This runtime file is looking for a new maintainer.
" Based On: https://github.com/kaarmu/typst.vim
" Last Change: 2025 Aug 05
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']
" CompilerSet makeprg=typst
execute 'CompilerSet makeprg=' . join(s:makeprg, '\ ')