neovim

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

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