fix: replace xml/indent with html/indent to fix empty tag indent error

This commit is contained in:
yemai
2019-06-17 11:10:39 +08:00
parent 846ba3a5b4
commit 2941c40e6c

View File

@@ -55,7 +55,7 @@ runtime! indent/javascript.vim
let b:javascript_indentexpr = &indentexpr
unlet! b:did_indent
runtime! indent/xml.vim
runtime! indent/html.vim
unlet! b:did_indent
runtime! indent/css.vim
@@ -103,7 +103,11 @@ function! GetVueIndent()
let ind = GetPugIndent()
elseif s:SynHTML(prevsyn)
call LogMsg('syntax: html')
let ind = XmlIndentGet(v:lnum, 0)
if exists("*HtmlIndentGet")
let ind = HtmlIndentGet(v:lnum)
elseif exists("*HtmlIndent")
let ind = HtmlIndent()
endif
" Align '/>' and '>' with '<' for multiline tags.
if curline =~? s:end_tag