Skip to content
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

Documentation: describe importSelectors #2833

Merged
merged 1 commit into from
Oct 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -3880,6 +3880,22 @@ values are supported since v3.0.0:
If set explicitly, will be used for type arguments or parameters,
instead of the respective [`binPack.unsafeXxxSite`](#binpackunsafexxxsite).

### binpacking of `importSelectors`

Import selectors (those grouped in `{...}`) will always be formatted on a single
line if they fit without exceeding `maxColumn`. This parameter controls how they
will be handled _if_ they overflow.

```scala mdoc:defaults
importSelectors
```

Takes the following parameters:

- `noBinPack`: format one per line
- `binPack`: binpack, with as many as would fit on each line
- `singleLine`: format all on one line

## Classic select chains

The parameters below control formatting of select chains when
Expand Down