diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-03-02 00:59:47 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-03-02 00:59:47 +0100 |
commit | 16774887a3fe26a09326585f871748ddf158905e (patch) | |
tree | 79dcc53d4d31dec0b829b3354a73f9038d0fccab | |
parent | e7dc03dc018ccdf48ddac392b65b6c6449a8cd84 (diff) | |
download | vim-polyglot-16774887a3fe26a09326585f871748ddf158905e.tar.gz vim-polyglot-16774887a3fe26a09326585f871748ddf158905e.zip |
Force javascript filetype for jsx, fixes #460
Diffstat (limited to '')
-rw-r--r-- | config.vim | 3 | ||||
-rw-r--r-- | ftdetect/polyglot.vim | 3 |
2 files changed, 6 insertions, 0 deletions
@@ -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 |