Skip to content

Commit c60bf4e

Browse files
committed
Fix indent
1 parent 206a976 commit c60bf4e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

after/indent/javascript.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ function! GetJsxIndent()
8484
\ SynJSXContinues(cursyn, prevsyn)
8585
let ind = XmlIndentGet(v:lnum, 0)
8686

87+
if cursyn == 0 || && (getline(v:lnum - 1) =~? '(' || getline(v:lnum - 1) =~? '{')
88+
let ind = ind + s:sw()
89+
endif
90+
8791
if getline(v:lnum) =~? s:endtag
8892
let ind = ind - s:sw()
8993
endif

0 commit comments

Comments
 (0)