Open Fuco1 opened 2 years ago
You can set ess-offset-arguments-newline
to prev-line
instead of prev-call
to indent this way.
Ah, they are defvar
instead of defcustom
so they didn't show up in the settings when I was looking around.
Would you mind me creating a PR turning them into options? (defcustom)
I still think this is a valid issue. The call should be considered AzureAuth::get_azure_token
not just get_azure_token
.
token <- AzureAuth::get_azure_token(
c("https://storage.azure.com/.default", "offline_access"),
tenant = "hello",
app = "world",
password = "secret",
version = 2)
This is the current indent, it sort of gets confused at the
::
token and thinks that's where the line "hangs".This seems much more natural to me.
I patched a function
ess-calculate-indent--args-prev-call
withel-patch
, notice the part wrapped withel-patch-swap
which replaces your regex with my edit to simply include check against::
token. Is this something we would want to PR and just make a default, or maybe add some setting? Personally, this has been annoying me for ages and I finally just fixed it :D (took me about 3 minutes :man_facepalming: )