Skip to content

Elixir

Setting up elixir-ls

  1. Install elixir:

    Terminal window
    brew install elixir
  2. Install elixir-ls:

    Terminal window
    brew install elixir-ls
  3. Restart Zed

Formatting with Mix

If you prefer to format your code with Mix, use the following snippet in your settings.json file to configure it as an external formatter. Formatting will occur on file save.

{
"language_overrides": {
"Elixir": {
"format_on_save": {
"external": {
"command": "mix",
"arguments": ["format", "--stdin-filename", "{buffer_path}", "-"]
}
}
}
}
}