You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
657 B
VimL
31 lines
657 B
VimL
if exists("current_compiler")
|
|
finish
|
|
endif
|
|
let current_compiler = "typescript"
|
|
|
|
if !exists("g:typescript_compiler_binary")
|
|
let g:typescript_compiler_binary = "tsc"
|
|
endif
|
|
|
|
if !exists("g:typescript_compiler_options")
|
|
let g:typescript_compiler_options = ""
|
|
endif
|
|
|
|
if exists(":CompilerSet") != 2
|
|
command! -nargs=* CompilerSet setlocal <args>
|
|
endif
|
|
|
|
let s:cpo_save = &cpo
|
|
set cpo-=C
|
|
|
|
execute 'CompilerSet makeprg='
|
|
\ . escape(g:typescript_compiler_binary, ' ')
|
|
\ . '\ '
|
|
\ . escape(g:typescript_compiler_options, ' ')
|
|
\ . '\ $*\ %'
|
|
|
|
CompilerSet errorformat=%+A\ %#%f\ %#(%l\\\,%c):\ %m,%C%m
|
|
|
|
let &cpo = s:cpo_save
|
|
unlet s:cpo_save
|