Closed firas-assaad closed 8 months ago
set space_before_function_call_single_arg=only_table
space_before_function_call_single_arg=only_table
I already tried. This removes the space before strings. e.g.
-- Before:
require 'file'
-- After:
require'file'
What I want is to not do anything if it's a string. Just keep it as it is if possible.
you can set space_before_function_call_single_arg.string = keep
If you want to get an early taste of this feature, you can compile it yourself, or wait for me to release a version in a few days.
Thank you so much for adding this option (and the one for continuation too). I'll wait for the release.
Usually I like to have a space before a function call with a single string or table argument, but I have a few special functions where I don't want to have spaces. For example:
I realize this is a very specific use case, so I was wondering if there's a way to simply turn off the
space_before_function_call_single_arg
setting. Something like "keep" or "preserve".Edit: ideally with different settings for tables and strings. I still want to always have a space before tables.