summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2016-07-26 13:47:20 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2016-07-26 13:52:30 +0200
commit7dd62806a06af3cf2410cd8a4f83205269f279de (patch)
tree9368759a1a15595b0940c0fd0b000c6c102c36ad
parent6a823fb3af595051b3a821496ce2a93aa51fa076 (diff)
downloadvim-polyglot-7dd62806a06af3cf2410cd8a4f83205269f279de.tar.gz
vim-polyglot-7dd62806a06af3cf2410cd8a4f83205269f279de.zip
Enable jsx by default
-rwxr-xr-xbuild1
-rw-r--r--config.vim4
-rw-r--r--ftdetect/polyglot.vim4
3 files changed, 9 insertions, 0 deletions
diff --git a/build b/build
index eeee8221..5d44c1f9 100755
--- a/build
+++ b/build
@@ -75,6 +75,7 @@ copy_dir() {
}
concat_ftdetect() {
+ cat config.vim >> tmp/polyglot.vim
for f in ftdetect/*; do (echo '" '"$f"; cat "${f}"; echo) >> tmp/polyglot.vim; done
rm -f ftdetect/*
mv tmp/polyglot.vim ftdetect/
diff --git a/config.vim b/config.vim
new file mode 100644
index 00000000..5ce9bd83
--- /dev/null
+++ b/config.vim
@@ -0,0 +1,4 @@
+" Enable jsx syntax by default
+if !exists('g:jsx_ext_required')
+ let g:jsx_ext_required = 0
+endif
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 8f343523..c6e16496 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -1,3 +1,7 @@
+" Enable jsx syntax by default
+if !exists('g:jsx_ext_required')
+ let g:jsx_ext_required = 0
+endif
" ftdetect/ansible.vim
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ansible') == -1