Skip to content

Commit

Permalink
An additional note about hanging indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewRadev committed Aug 3, 2020
1 parent 91c7606 commit fe2e520
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion doc/ft-ruby-indent.txt
Expand Up @@ -119,7 +119,7 @@ following setting.
:let g:ruby_indent_hanging_elements = 0
<
By default, this setting is "1" (true) meaning that hanging indentation is
enabled.
enabled in some cases.

Here is an example method call when the setting is true (non-zero):
>
Expand All @@ -135,5 +135,14 @@ And the same method call when the setting is false (zero):
on_sale: true,
)
<
Note that, even if the setting is turned on, you can still get non-hanging
indentation by putting each argument on a separate line:
>
render(
'product/show',
product: product,
on_sale: true,
)
<

vim:tw=78:sw=4:ts=8:ft=help:norl:

0 comments on commit fe2e520

Please sign in to comment.