mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-08 11:33:52 -05:00
26 lines
662 B
VimL
26 lines
662 B
VimL
if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'compiler/typescript.vim')
|
|
finish
|
|
endif
|
|
|
|
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')
|
|
if exists('g:syntastic_typescript_tsc_args')
|
|
let g:typescript_compiler_options = g:syntastic_typescript_tsc_args
|
|
else
|
|
let g:typescript_compiler_options = ''
|
|
endif
|
|
endif
|
|
|
|
let &l:makeprg = g:typescript_compiler_binary . ' ' . g:typescript_compiler_options . ' $* %'
|
|
|
|
CompilerSet errorformat=%+A\ %#%f\ %#(%l\\\,%c):\ %m,%C%m
|