summaryrefslogtreecommitdiffstats
path: root/ftdetect/polyglot.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-09-10 10:30:32 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-09-10 10:30:32 +0200
commitfb7cf8a9ab782d67db5aa71bffac67e63fcc0c4c (patch)
tree9b41186c43daaacf5b6d1cee71f8bde4dbc8edf2 /ftdetect/polyglot.vim
parent19a69cf77d521d6f3856d2f5c1a2faa678b937ba (diff)
downloadvim-polyglot-fb7cf8a9ab782d67db5aa71bffac67e63fcc0c4c.tar.gz
vim-polyglot-fb7cf8a9ab782d67db5aa71bffac67e63fcc0c4c.zip
Update
Diffstat (limited to 'ftdetect/polyglot.vim')
-rw-r--r--ftdetect/polyglot.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 432b5e01..e49a966d 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -851,6 +851,10 @@ if !has_key(s:disabled_packages, 'ion')
au BufNewFile,BufRead ~/.config/ion/initrc setf ion
endif
+if !has_key(s:disabled_packages, 'jsx')
+ au BufNewFile,BufRead *.jsx setf javascriptreact
+endif
+
if !has_key(s:disabled_packages, 'javascript')
au BufNewFile,BufRead *._js setf javascript
au BufNewFile,BufRead *.bones setf javascript
@@ -939,10 +943,6 @@ if !has_key(s:disabled_packages, 'jst')
au BufNewFile,BufRead *.jst setf jst
endif
-if !has_key(s:disabled_packages, 'jsx')
- au BufNewFile,BufRead *.jsx setf javascriptreact
-endif
-
if !has_key(s:disabled_packages, 'julia')
au BufNewFile,BufRead *.jl setf julia
endif