neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

typst.vim (585B)


      1 " Vim compiler file
      2 " Language:    Typst
      3 " Previous Maintainer:  Luca Saccarola <github.e41mv@aleeas.com>
      4 " Maintainer:  This runtime file is looking for a new maintainer.
      5 " Based On:    https://github.com/kaarmu/typst.vim
      6 " Last Change: 2025 Aug 05
      7 
      8 if exists('current_compiler')
      9    finish
     10 endif
     11 let current_compiler = get(g:, 'typst_cmd', 'typst')
     12 
     13 " With `--diagnostic-format` we can use the default errorformat
     14 let s:makeprg = [current_compiler, 'compile', '--diagnostic-format', 'short', '%:S']
     15 
     16 " CompilerSet makeprg=typst
     17 execute 'CompilerSet makeprg=' . join(s:makeprg, '\ ')