0

Here is how vim-ruby installed by Janus currently indents a method with hash parameters:

my_method(foo: :bar,
          baz: {
  foo2: :bar2,
  foo3: :bar3,
}

I want it to be:

my_method(foo: :bar,
          baz: {
                 foo2: :bar2,
                 foo3: :bar3
          }
         )

How can I make that change in my .vimrc.after?

Kyle Heironimus
  • 7,741
  • 7
  • 39
  • 51

1 Answers1

1

As @Anthony mentions in his comment, this appears to be a vim-ruby issue. I got around it by adding this to my .vimrc.after

let g:ruby_indent_block_style = 'do' 

It doesn't indent exactly like I mention above, but is good enough.

my_method(foo: :bar,
          baz: {
            foo2: :bar2,
            foo3: :bar3,
          }
         )
Community
  • 1
  • 1
Kyle Heironimus
  • 7,741
  • 7
  • 39
  • 51