mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-08 21:54:46 +08:00
refact: improve format
This commit is contained in:
@@ -62,8 +62,7 @@ function! GetVueFold(lnum)
|
|||||||
" Vue tag
|
" Vue tag
|
||||||
if this_line =~ s:vue_tag_start
|
if this_line =~ s:vue_tag_start
|
||||||
return '>1'
|
return '>1'
|
||||||
endif
|
elseif this_line =~ s:vue_tag_end
|
||||||
if this_line =~ s:vue_tag_end
|
|
||||||
return '<1'
|
return '<1'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -74,7 +73,7 @@ function! GetVueFold(lnum)
|
|||||||
if a:lnum > 1
|
if a:lnum > 1
|
||||||
let prev_indent = s:IndentLevel(a:lnum - 1)
|
let prev_indent = s:IndentLevel(a:lnum - 1)
|
||||||
|
|
||||||
if this_line =~ s:block_end && (this_indent < prev_indent)
|
if (this_line =~ s:block_end) && (this_indent < prev_indent)
|
||||||
return prev_indent
|
return prev_indent
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user