summaryrefslogtreecommitdiffstats
path: root/after/indent/javascript.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-10-04 21:19:51 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-10-04 21:19:51 +0200
commitc0b866aac3c5cb534486a70284de1bbbdc392d97 (patch)
tree0a0f865af90b11e805c8416a907b6c762cf9a135 /after/indent/javascript.vim
parentb4868c7ea7b75dd09a6d172871c901905f5d539a (diff)
downloadvim-polyglot-c0b866aac3c5cb534486a70284de1bbbdc392d97.tar.gz
vim-polyglot-c0b866aac3c5cb534486a70284de1bbbdc392d97.zip
Add graphql indentation again, thanks @jparise!
Diffstat (limited to 'after/indent/javascript.vim')
-rw-r--r--after/indent/javascript.vim12
1 files changed, 3 insertions, 9 deletions
diff --git a/after/indent/javascript.vim b/after/indent/javascript.vim
index 2992e942..e3d355fc 100644
--- a/after/indent/javascript.vim
+++ b/after/indent/javascript.vim
@@ -1,9 +1,3 @@
-if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1)
-
-if get(g:, 'vim_jsx_pretty_disable_js', 0)
- finish
-endif
-
-source <sfile>:h/jsx.vim
-
-endif
+" Polyglot metafile
+source <sfile>:h/javascript-1.vim
+source <sfile>:h/javascript-2.vim