summaryrefslogtreecommitdiffstats
path: root/after/indent/javascript-1.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-1.vim
parentb4868c7ea7b75dd09a6d172871c901905f5d539a (diff)
downloadvim-polyglot-c0b866aac3c5cb534486a70284de1bbbdc392d97.tar.gz
vim-polyglot-c0b866aac3c5cb534486a70284de1bbbdc392d97.zip
Add graphql indentation again, thanks @jparise!
Diffstat (limited to 'after/indent/javascript-1.vim')
-rw-r--r--after/indent/javascript-1.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/after/indent/javascript-1.vim b/after/indent/javascript-1.vim
new file mode 100644
index 00000000..2992e942
--- /dev/null
+++ b/after/indent/javascript-1.vim
@@ -0,0 +1,9 @@
+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