diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-10 12:18:29 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-10 12:18:29 +0200 |
commit | be092d6f430ca802d7200e68a5c987195bccd0e9 (patch) | |
tree | cb0c28919b29d1cc5bd8737da7cb402afe0392ab /after/ftplugin/javascript-2.vim | |
parent | fb7cf8a9ab782d67db5aa71bffac67e63fcc0c4c (diff) | |
download | vim-polyglot-be092d6f430ca802d7200e68a5c987195bccd0e9.tar.gz vim-polyglot-be092d6f430ca802d7200e68a5c987195bccd0e9.zip |
Fix jsx indentation, closes #543v4.9.8
Diffstat (limited to 'after/ftplugin/javascript-2.vim')
-rw-r--r-- | after/ftplugin/javascript-2.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/after/ftplugin/javascript-2.vim b/after/ftplugin/javascript-2.vim new file mode 100644 index 00000000..2992e942 --- /dev/null +++ b/after/ftplugin/javascript-2.vim @@ -0,0 +1,9 @@ +if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1) + +if get(g:, 'vim_jsx_pretty_disable_js', 0) + finish +endif + +source <sfile>:h/jsx.vim + +endif |