diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-08 00:40:28 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-08 00:40:28 +0200 |
commit | bb3de8fa5e509d5f5faf173fd1a92635a0023274 (patch) | |
tree | a6401fbc683b8213f008d0564fa40e7f81e1c6f2 /ftdetect | |
parent | b3763a917a6a3ca85ae51086fc8d29b28f66fc88 (diff) | |
download | vim-polyglot-bb3de8fa5e509d5f5faf173fd1a92635a0023274.tar.gz vim-polyglot-bb3de8fa5e509d5f5faf173fd1a92635a0023274.zip |
Fix markdown and other highlighting, #578
Diffstat (limited to 'ftdetect')
-rw-r--r-- | ftdetect/polyglot.vim | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 791c4c0e..2f8cad97 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -118,6 +118,11 @@ augroup filetypedetect " DO NOT EDIT CODE BELOW, IT IS GENERATED WITH MAKEFILE +if !has_key(s:disabled_packages, 'html') + au! BufNewFile,BufRead,BufWritePost *.html call polyglot#detect#Html() + au BufNewFile,BufRead *.htm,*.html.hl,*.inc,*.st,*.xht,*.xhtml setf html +endif + if !has_key(s:disabled_packages, 'pullrequest') au BufNewFile,BufRead PULLREQ_EDITMSG setf pullrequest endif @@ -2197,11 +2202,6 @@ if !has_key(s:disabled_packages, 'i3') au BufNewFile,BufRead *.i3.config,*.i3config,{.,}i3.config,{.,}i3config,i3.config,i3config setf i3config endif -if !has_key(s:disabled_packages, 'html5') - au! BufNewFile,BufRead,BufWritePost *.html call polyglot#detect#Html() - au BufNewFile,BufRead *.htm,*.html.hl,*.inc,*.st,*.xht,*.xhtml setf html -endif - if !has_key(s:disabled_packages, 'hive') au BufNewFile,BufRead *.hql,*.q,*.ql setf hive endif |