mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-07 21:24:50 +08:00
fix: replace xml/indent with html/indent to fix empty tag indent error
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user