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 --- plugin_guard_jsx.vim.template | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugin_guard_jsx.vim.template') diff --git a/plugin_guard_jsx.vim.template b/plugin_guard_jsx.vim.template index a6b41027..ffa94905 100644 --- a/plugin_guard_jsx.vim.template +++ b/plugin_guard_jsx.vim.template @@ -1,5 +1,3 @@ -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) %%CONTENT%% +endif -- cgit v1.2.3