diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-04 17:39:23 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-04 17:39:23 +0200 |
commit | ae18284e5af128e1fca0b42f284b558dd7dce73d (patch) | |
tree | eb065c770b2f4985f5677829c1550d0f7067acea /after/indent | |
parent | e3024f21fca230b030fb2fe2fde4e768fb8205b3 (diff) | |
download | vim-polyglot-3.10.0.tar.gz vim-polyglot-3.10.0.zip |
Disable jsx when ts or js is disabled, closes #414v3.10.0
Diffstat (limited to 'after/indent')
-rw-r--r-- | after/indent/javascript.vim | 2 | ||||
-rw-r--r-- | after/indent/typescript.vim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/after/indent/javascript.vim b/after/indent/javascript.vim index 275073fa..8c2254d6 100644 --- a/after/indent/javascript.vim +++ b/after/indent/javascript.vim @@ -1,4 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'jsx') != -1 +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 diff --git a/after/indent/typescript.vim b/after/indent/typescript.vim index 4e281b22..acc283f0 100644 --- a/after/indent/typescript.vim +++ b/after/indent/typescript.vim @@ -1,4 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'jsx') != -1 +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 |