Skip to content

Support formatter options #2702

@jonatanklosko

Description

@jonatanklosko

Currently Livebook formats the code without respecting any plugins or formatter options. We could add Kino.formatter_options(...) with options matching .formatter.exs. The logic would be similar to the mix format task. In order to handle :import_deps, we would need to traverse the dependencies and read their .formatter.exs. There is no public API to do this for the Mix.install/1 project, but we could possibly make Mix.in_install_dir/1 public in Elixir.

For now this issue is mostly to track interest and use cases.

Also see prior discussion in #1212.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionNeeds to be discussed before moving forward

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions