diff options
Diffstat (limited to 'after/indent/javascript-2.vim')
-rw-r--r-- | after/indent/javascript-2.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/after/indent/javascript-2.vim b/after/indent/javascript-2.vim index 85e52312..24d29703 100644 --- a/after/indent/javascript-2.vim +++ b/after/indent/javascript-2.vim @@ -1,4 +1,6 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1 +if !polyglot#util#IsEnabled('graphql', expand('<sfile>:p')) + finish +endif " Copyright (c) 2016-2020 Jon Parise <jon@indelible.org> " @@ -42,5 +44,3 @@ function GetJavascriptGraphQLIndent() return eval(b:indentexpr_base) endfunction - -endif |