robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
02ed5dc088
master
1" Vim compiler file 2" Compiler: TypeScript Compiler 3" Maintainer: Doug Kearns <dougkearns@gmail.com> 4" Last Change: 2024 Apr 03 5" 2025 Mar 11 by The Vim Project (add comment for Dispatch, add tsc_makeprg variable) 6 7if exists ( "current_compiler" ) 8finish 9endif 10let current_compiler = "tsc" 11 12let s: cpo_save = & cpo 13set cpo & vim 14 15" CompilerSet makeprg=tsc 16" CompilerSet makeprg=npx\ tsc 17execute $ 'CompilerSet makeprg={escape(get(b:, 'tsc_makeprg', get(g:, 'tsc_makeprg', 'tsc')), ' \|"')}' 18CompilerSet errorformat=%f\ %#(%l\\,%c):\ %trror\ TS%n:\ %m, 19 \%trror\ TS%n:\ %m, 20 \%-G%.%# 21 22let & cpo = s: cpo_save 23unlet s: cpo_save