-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Functions in arguments get formatted into an unreadable style #606
Comments
This looks like a duplicate of #276, and there is some comments there about why its currently done. Roact.createElement("Name", {
...
}, {
...
}) where keeping it inline is nicer. I agree with you here though that this seems a bit harder to read. You can view the |
An approach possible simpler than #276, is: if a function is short enough to fit in one line when passed as a parameter, then just oneline it, e.g.: vim.keymap.set(
"n",
"<Leader>e",
function() require("trouble").toggle({ "document_diagnostics", group = false }) end,
{ desc = "Show LSP errors/diagnostics" }
) Though this would only address some cases. |
I'm not sure I fully understand the snapshot files. |
This is already possible, but it requires configuring |
Going to fold this issue into #276 as a duplicate. I think the formatting here could be improved though. |
This:
Gets formatted into this:
This only seems to happen if the function is too short. I guess only character count for parameters is taken into account, but not the fact that one parameter is a function?
The text was updated successfully, but these errors were encountered: