diff options
Diffstat (limited to '')
-rw-r--r-- | after/indent/javascript.vim | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/after/indent/javascript.vim b/after/indent/javascript.vim index 8c2254d6..90a94349 100644 --- a/after/indent/javascript.vim +++ b/after/indent/javascript.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) """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Vim indent file " @@ -31,10 +28,8 @@ endfunction let &cpo = s:keepcpo unlet s:keepcpo -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'styled-components') != -1 - finish endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'styled-components') == -1 " Vim syntax file " Language: styled-components (js/ts) " Maintainer: Karl Fleischmann <fleischmann.karl@gmail.com> @@ -204,3 +199,4 @@ fu! GetStyledIndent() " if all else fails indent according to C-syntax return cindent(v:lnum) endfu +endif |