We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 206a976 commit c60bf4eCopy full SHA for c60bf4e
1 file changed
after/indent/javascript.vim
@@ -84,6 +84,10 @@ function! GetJsxIndent()
84
\ SynJSXContinues(cursyn, prevsyn)
85
let ind = XmlIndentGet(v:lnum, 0)
86
87
+ if cursyn == 0 || && (getline(v:lnum - 1) =~? '(' || getline(v:lnum - 1) =~? '{')
88
+ let ind = ind + s:sw()
89
+ endif
90
+
91
if getline(v:lnum) =~? s:endtag
92
let ind = ind - s:sw()
93
endif
0 commit comments