We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8531812 commit 5e79f9fCopy full SHA for 5e79f9f
1 file changed
after/indent/jsx.vim
@@ -97,6 +97,12 @@ fu! GetJsxIndent()
97
endif
98
99
" Then correct the indentation of any JSX following '/>' or '>'.
100
+ " Skip empty lines
101
+ let i = 1
102
+ while ((v:lnum - i) != a:firstline && getline(v:lnum - i) =~? '^\s*$')
103
+ let i = i + 1
104
+ endwhile
105
+
106
if getline(v:lnum - 1) =~? s:endtag
107
let ind = ind + &sw
108
0 commit comments