From ae18284e5af128e1fca0b42f284b558dd7dce73d Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 4 Sep 2019 17:39:23 +0200 Subject: Disable jsx when ts or js is disabled, closes #414 --- after/syntax/javascript.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'after/syntax/javascript.vim') diff --git a/after/syntax/javascript.vim b/after/syntax/javascript.vim index 27818b58..1d2064b5 100644 --- a/after/syntax/javascript.vim +++ b/after/syntax/javascript.vim @@ -1,4 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'jsx') != -1 +if exists('g:polyglot_disabled') && (index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) finish endif -- cgit v1.2.3