From cbde2571d4f79770ac552fe75440de72893bc73a Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 25 Oct 2020 03:19:58 +0100 Subject: Respect symlinks for resolving vim-polyglot as fallback, closes #605 --- after/syntax/javascript.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'after/syntax/javascript.vim') diff --git a/after/syntax/javascript.vim b/after/syntax/javascript.vim index 2992e942..f56dd82a 100644 --- a/after/syntax/javascript.vim +++ b/after/syntax/javascript.vim @@ -1,9 +1,9 @@ -if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1) +if !polyglot#util#IsEnabled('jsx', expand(':p')) + finish +endif if get(g:, 'vim_jsx_pretty_disable_js', 0) finish endif source :h/jsx.vim - -endif -- cgit v1.2.3