mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-09 14:14:46 +08:00
chore: clean code
This commit is contained in:
@@ -102,7 +102,6 @@ function! GetVueIndent()
|
|||||||
if SynsPug(prevsyns)
|
if SynsPug(prevsyns)
|
||||||
call s:LogMsg('syntax: pug')
|
call s:LogMsg('syntax: pug')
|
||||||
let ind = GetPugIndent()
|
let ind = GetPugIndent()
|
||||||
|
|
||||||
elseif SynsHTML(prevsyns)
|
elseif SynsHTML(prevsyns)
|
||||||
call s:LogMsg('syntax: html')
|
call s:LogMsg('syntax: html')
|
||||||
let ind = XmlIndentGet(v:lnum, 0)
|
let ind = XmlIndentGet(v:lnum, 0)
|
||||||
@@ -142,8 +141,8 @@ function! GetVueIndent()
|
|||||||
call s:LogMsg('prev line is vue tag')
|
call s:LogMsg('prev line is vue tag')
|
||||||
let ind = 0
|
let ind = 0
|
||||||
endif
|
endif
|
||||||
call s:LogMsg('result indent: '.ind)
|
|
||||||
|
|
||||||
|
call s:LogMsg('result indent: '.ind)
|
||||||
return ind
|
return ind
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user