summaryrefslogtreecommitdiffstats
path: root/after/ftplugin/coffee.vim
diff options
context:
space:
mode:
Diffstat (limited to 'after/ftplugin/coffee.vim')
-rw-r--r--after/ftplugin/coffee.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/after/ftplugin/coffee.vim b/after/ftplugin/coffee.vim
index 27c00bcb..a039dd95 100644
--- a/after/ftplugin/coffee.vim
+++ b/after/ftplugin/coffee.vim
@@ -1,9 +1,9 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cjsx') == -1
+if !polyglot#util#IsEnabled('cjsx', expand('<sfile>:p'))
+ finish
+endif
if exists("loaded_matchit")
let b:match_ignorecase = 0
let b:match_words = '(:),\[:\],{:},<:>,' .
\ '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>'
endif
-
-endif