vim-polyglot/compiler/typescript.vim
Adam Stankiewicz 0244e228fa
Update
2016-09-11 13:24:17 +02:00

25 lines
601 B
VimL

if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
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 &l:makeprg = g:typescript_compiler_binary . ' ' . g:typescript_compiler_options . ' $* %'
CompilerSet errorformat=%+A\ %#%f\ %#(%l\\\,%c):\ %m,%C%m
endif