vim

Fork of vim, an acceptable text editor
git clone git://git.laack.co/vim.git
Log | Files | Refs | README | LICENSE

tsc.vim (634B)


      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 
      7 if exists("current_compiler")
      8   finish
      9 endif
     10 let current_compiler = "tsc"
     11 
     12 let s:cpo_save = &cpo
     13 set cpo&vim
     14 
     15 " CompilerSet makeprg=tsc
     16 " CompilerSet makeprg=npx\ tsc
     17 execute $'CompilerSet makeprg={escape(get(b:, 'tsc_makeprg', get(g:, 'tsc_makeprg', 'tsc')), ' \|"')}'
     18 CompilerSet errorformat=%f\ %#(%l\\,%c):\ %trror\ TS%n:\ %m,
     19 		       \%trror\ TS%n:\ %m,
     20 		       \%-G%.%#
     21 
     22 let &cpo = s:cpo_save
     23 unlet s:cpo_save