From 48e07bc5014fecfdff24f75124a65634c216c9e2 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Fri, 6 Sep 2019 15:54:31 +0200 Subject: Improve guard to support concatenated files --- after/syntax/jsx_pretty.vim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'after/syntax/jsx_pretty.vim') diff --git a/after/syntax/jsx_pretty.vim b/after/syntax/jsx_pretty.vim index f37a084b..d2f5d383 100644 --- a/after/syntax/jsx_pretty.vim +++ b/after/syntax/jsx_pretty.vim @@ -1,7 +1,4 @@ -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 - +if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) let s:highlight_close_tag = get(g:, 'vim_jsx_pretty_highlight_close_tag', 0) " @@ -214,3 +211,4 @@ if s:vim_jsx_pretty_colorful_config == 1 highlight def link jsFuncArgs Type endif +endif -- cgit v1.2.3