From 16774887a3fe26a09326585f871748ddf158905e Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 2 Mar 2020 00:59:47 +0100 Subject: Force javascript filetype for jsx, fixes #460 --- ftdetect/polyglot.vim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ftdetect') 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 -- cgit v1.2.3