From 8dd0474feb60a4b9f50ee2b8decead0146623966 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 1 Sep 2020 15:55:43 +0200 Subject: Remove vim-sql-syntax, #528 --- after/indent/javascript.vim | 2 +- after/indent/javascriptreact.vim | 2 +- after/indent/tsx.vim | 2 +- after/indent/typescriptreact.vim | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'after/indent') diff --git a/after/indent/javascript.vim b/after/indent/javascript.vim index 370e12d4..dd280edb 100644 --- a/after/indent/javascript.vim +++ b/after/indent/javascript.vim @@ -45,7 +45,7 @@ function GetJavascriptGraphQLIndent() endfunction endif -if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) +if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1) """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Vim indent file diff --git a/after/indent/javascriptreact.vim b/after/indent/javascriptreact.vim index e423f0ed..ab847072 100644 --- a/after/indent/javascriptreact.vim +++ b/after/indent/javascriptreact.vim @@ -1,4 +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) +if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1) source :h/javascript.vim diff --git a/after/indent/tsx.vim b/after/indent/tsx.vim index 084cac57..13312c03 100644 --- a/after/indent/tsx.vim +++ b/after/indent/tsx.vim @@ -1,4 +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) +if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1) """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Vim indent file diff --git a/after/indent/typescriptreact.vim b/after/indent/typescriptreact.vim index 223f77c5..3d850291 100644 --- a/after/indent/typescriptreact.vim +++ b/after/indent/typescriptreact.vim @@ -1,4 +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) +if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1) source :h/tsx.vim -- cgit v1.2.3