dart-lang/dart-vim-plugin

Edit: NOT AN ISSUE. Sorry.... Github won't let me comment or close.

tuxgirl opened this issue · 3 comments

It appears that the indenting does not work correctly for parentheses.

Example:
When following the example code at https://flutter.io/get-started/codelab/

If I type:
home: Scaffold(
and then hit Enter, it puts me at the same indent level (does not indent further in).
Also, if I use gg=G, it removes all indenting due to parentheses.

:DartFmt adds the indenting back in, so it does appear that the indents should be there.

I'm unfortunately not really sure how to fix this myself. If I find a solution, I will post a reply with that information.

Sorry, this is my error. My vimrc was messed up.

sorry i have exact same issue here --- > what was your fix?
image

setlocal cinoptions+=j1,J1,(1s,u1s,U1,m1,+2s

fixes the issue