mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-08 21:54:46 +08:00
fix: recover to XmlIndent for correct common tag indentation
This commit is contained in:
@@ -55,7 +55,7 @@ runtime! indent/javascript.vim
|
|||||||
let b:javascript_indentexpr = &indentexpr
|
let b:javascript_indentexpr = &indentexpr
|
||||||
|
|
||||||
unlet! b:did_indent
|
unlet! b:did_indent
|
||||||
runtime! indent/html.vim
|
runtime! indent/xml.vim
|
||||||
|
|
||||||
unlet! b:did_indent
|
unlet! b:did_indent
|
||||||
runtime! indent/css.vim
|
runtime! indent/css.vim
|
||||||
@@ -103,11 +103,7 @@ function! GetVueIndent()
|
|||||||
let ind = GetPugIndent()
|
let ind = GetPugIndent()
|
||||||
elseif s:SynHTML(prevsyn)
|
elseif s:SynHTML(prevsyn)
|
||||||
call LogMsg('syntax: html')
|
call LogMsg('syntax: html')
|
||||||
if exists("*HtmlIndentGet")
|
let ind = XmlIndentGet(v:lnum, 0)
|
||||||
let ind = HtmlIndentGet(v:lnum)
|
|
||||||
elseif exists("*HtmlIndent")
|
|
||||||
let ind = HtmlIndent()
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Align '/>' and '>' with '<' for multiline tags.
|
" Align '/>' and '>' with '<' for multiline tags.
|
||||||
if curline =~? s:end_tag
|
if curline =~? s:end_tag
|
||||||
|
|||||||
Reference in New Issue
Block a user