From 056d7ef24c9bf485f77ec05d18e8135ecf3a131d Mon Sep 17 00:00:00 2001 From: Albert Meltzer <7529386+kitbellew@users.noreply.github.com> Date: Fri, 29 Oct 2021 08:58:39 -0700 Subject: [PATCH] Documentation: describe `importSelectors` --- docs/configuration.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/configuration.md b/docs/configuration.md index 74e547076c..4b86028195 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -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