diff --git a/README.md b/README.md index f286fd6..99906cf 100644 --- a/README.md +++ b/README.md @@ -116,13 +116,37 @@ file basis using `ftplugin` or `autocmd`. For example, the `argwrap_tail_comma` *Tail comma enabled for square brackets only (`let g:argwrap_tail_comma_braces = '['`)* ``` - r = [ + [ + 1, 2, 3, - 5, ] ``` +* **argwrap\_tail\_indent\_braces** + + Specifies if the closing brace should be indented to argument depth. + + *Tail indent disabled* + + ``` + Foo( + wibble, + wobble, + wubble + ) + ``` + + *Tail indent enabled for parenthesis (`let g:argwrap_tail_indent_braces = '('`)* + + ``` + Foo( + wibble, + wobble, + wubble + ) + ``` + * **argwrap\_wrap\_closing\_brace** Specifies if the closing brace should be wrapped to a new line. @@ -146,6 +170,54 @@ file basis using `ftplugin` or `autocmd`. For example, the `argwrap_tail_comma` wubble) ``` +* **argwrap\_comma\_first** + + Specifies if the argument comma delimiter should be placed before arguments. + + *Comma first disabled (default)* + + ``` + Foo( + wibble, + wobble, + wubble + ) + ``` + + *Comma first enabled (`let g:argwrap_comma_first = 1`)* + + ``` + Foo( + wibble + , wobble + , wubble + ) + ``` + +* **argwrap\_comma\_first\_indent** + + Specifies if the first argument should be indented when used in conjunction with `argwrap_comma_first`. + + *Comma first indent disabled (default)* + + ``` + Foo( + wibble + , wobble + , wubble + ) + ``` + + *Comma first indent enabled (`let g:argwrap_comma_first_indent = 1`)* + + ``` + Foo( + wibble + , wobble + , wubble + ) + ``` + ## Usage ## 1. Position the cursor *inside* of the scope of the parenthesis, brackets or curly braces you wish to wrap/unwrap (not