From bb3de8fa5e509d5f5faf173fd1a92635a0023274 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Thu, 8 Oct 2020 00:40:28 +0200 Subject: Fix markdown and other highlighting, #578 --- ftdetect/polyglot.vim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ftdetect') 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 -- cgit v1.2.3