diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-03-04 09:28:35 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-03-04 09:28:35 +0100 |
commit | 1597b7b766ee3999cdfea862af14999c37041d0e (patch) | |
tree | 4934067126da413f85ac3fd6007d177bce77de93 /after/indent | |
parent | ed677c34d55a0e025b7008f29419498a3989cde2 (diff) | |
download | vim-polyglot-1597b7b766ee3999cdfea862af14999c37041d0e.tar.gz vim-polyglot-1597b7b766ee3999cdfea862af14999c37041d0e.zip |
Change plugin guard for disabling, fixes #371
Diffstat (limited to 'after/indent')
-rw-r--r-- | after/indent/html.vim | 8 | ||||
-rw-r--r-- | after/indent/jsx.vim | 8 | ||||
-rw-r--r-- | after/indent/objc.vim | 8 |
3 files changed, 12 insertions, 12 deletions
diff --git a/after/indent/html.vim b/after/indent/html.vim index 47da18f0..d6c1e812 100644 --- a/after/indent/html.vim +++ b/after/indent/html.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'coffee-script') != -1 + finish +endif + " Language: CoffeeScript " Maintainer: Mick Koch <mick@kochm.co> " URL: http://github.com/kchmck/vim-coffee-script @@ -33,5 +35,3 @@ function! GetCoffeeHtmlIndent(curlinenum) " Otherwise use html indenting. exec 'return ' s:htmlIndentExpr endfunction - -endif diff --git a/after/indent/jsx.vim b/after/indent/jsx.vim index dc244d81..35df1f5f 100644 --- a/after/indent/jsx.vim +++ b/after/indent/jsx.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jsx') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'jsx') != -1 + finish +endif + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Vim indent file " @@ -114,5 +116,3 @@ fu! GetJsxIndent() return ind endfu - -endif diff --git a/after/indent/objc.vim b/after/indent/objc.vim index 64c7e79c..1bcc217a 100644 --- a/after/indent/objc.vim +++ b/after/indent/objc.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'objc') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'objc') != -1 + finish +endif + " Vim indent file " Language: Objective-C " Maintainer: Bjorn Winckler <bjorn.winckler@gmail.com> @@ -93,5 +95,3 @@ endfunction " Restore 'cpo' options let &cpo = s:save_cpo unlet s:save_cpo - -endif |