Skip to content

Commit ead98c9

Browse files
authored
Largely improve indentation computation (#106)
1 parent b71fa1f commit ead98c9

File tree

3 files changed

+149
-466
lines changed

3 files changed

+149
-466
lines changed

after/indent/javascript.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if exists('s:did_indent')
1919
endif
2020

2121
setlocal indentexpr=GetJsxIndent()
22-
setlocal indentkeys=0{,0},0),0],0\,,!^F,o,O,e,<>>,=*/
22+
setlocal indentkeys=0{,0},0),0],0\*,0\,,!^F,o,O,e,<>>,=*/
2323

2424
function! GetJsxIndent()
2525
return jsx_pretty#indent#get(function('GetJavascriptIndent'))

after/indent/typescript.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if exists('s:did_indent')
2424
endif
2525

2626
setlocal indentexpr=GetJsxIndent()
27-
setlocal indentkeys=0{,0},0),0],0\,,!^F,o,O,e,*<Return>,<>>,<<>,/
27+
setlocal indentkeys=0{,0},0),0],0\*,0\,,!^F,o,O,e,<>>,=*/
2828

2929
function! GetJsxIndent()
3030
return jsx_pretty#indent#get(function('GetTypescriptIndent'))

0 commit comments

Comments
 (0)