diff options
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/typescript.vim | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/compiler/typescript.vim b/compiler/typescript.vim index e81ebd66..7833e005 100644 --- a/compiler/typescript.vim +++ b/compiler/typescript.vim @@ -3,11 +3,14 @@ if exists("current_compiler") 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 - -let &l:makeprg='tsc' . g:typescript_compiler_options . ' $* %' +let &l:makeprg = g:typescript_compiler_binary . ' ' . g:typescript_compiler_options . ' $* %' CompilerSet errorformat=%+A\ %#%f\ %#(%l\\\,%c):\ %m,%C%m |