Enable jsx by default

This commit is contained in:
Adam Stankiewicz 2016-07-26 13:47:20 +02:00
parent 6a823fb3af
commit 7dd62806a0
No known key found for this signature in database
GPG Key ID: A62480DCEAC884DF
3 changed files with 9 additions and 0 deletions

1
build
View File

@ -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/

4
config.vim Normal file
View File

@ -0,0 +1,4 @@
" Enable jsx syntax by default
if !exists('g:jsx_ext_required')
let g:jsx_ext_required = 0
endif

View File

@ -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