From 15bae033dc9f68ea58bd005f58d98d6e866c89cc Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sat, 31 Mar 2018 10:54:06 -0700 Subject: [PATCH] Updating README.md --- README.md | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 74 insertions(+), 2 deletions(-) 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