summaryrefslogtreecommitdiffstats
path: root/compiler/typescript.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2015-01-23 21:09:23 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2015-01-23 21:09:23 +0100
commit6745c49110838db9ac39e85bbcf690b40bc20f83 (patch)
tree3b1c42f67bacb5ddb5b6afc5b4610f4c238877a7 /compiler/typescript.vim
parent1a97304cf642e9f887122e162b1999768b60c9d7 (diff)
downloadvim-polyglot-1.11.2.tar.gz
vim-polyglot-1.11.2.zip
Update all packagesv1.11.2
Diffstat (limited to 'compiler/typescript.vim')
-rw-r--r--compiler/typescript.vim7
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