FooSoft/vim-argwrap

Request: Align all arguments and closing parenthesis.

bkaradzic opened this issue · 1 comments

This code:

	int32_t prettify(char* _out, int32_t _count, uint64_t _value, Units::Enum _units = Units::Kibi);

with default argwrap behavior for leading comma arguments produces following:

	int32_t prettify(
		char* _out
		, int32_t _count
		, uint64_t _value
		, Units::Enum _units = Units::Kibi
	);

I would like result to look like this:

With aligned arguments (only):

	int32_t prettify(
		  char* _out
		, int32_t _count
		, uint64_t _value
		, Units::Enum _units = Units::Kibi
	);

With aligned parenthesis (only):

	int32_t prettify(
		char* _out
		, int32_t _count
		, uint64_t _value
		, Units::Enum _units = Units::Kibi
		);

Combined:

	int32_t prettify(
		  char* _out
		, int32_t _count
		, uint64_t _value
		, Units::Enum _units = Units::Kibi
		);

fixed