summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--config.vim3
-rw-r--r--ftdetect/polyglot.vim3
2 files changed, 6 insertions, 0 deletions
diff --git a/config.vim b/config.vim
index 86db52a9..296bed35 100644
--- a/config.vim
+++ b/config.vim
@@ -91,4 +91,7 @@ augroup filetypedetect
"jinja
autocmd BufNewFile,BufRead *.jinja2,*.j2,*.jinja,*.nunjucks,*.nunjs,*.njk set ft=jinja
+
+ "jsx
+ au BufNewFile,BufRead *.jsx setf javascriptreact
augroup END
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 2069098a..85259f4f 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -91,6 +91,9 @@ augroup filetypedetect
"jinja
autocmd BufNewFile,BufRead *.jinja2,*.j2,*.jinja,*.nunjucks,*.nunjs,*.njk set ft=jinja
+
+ "jsx
+ au BufNewFile,BufRead *.jsx setf javascriptreact
augroup END
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'acpiasl') == -1
augroup filetypedetect