ameba-ls v0.2.0

Language server for the Ameba linter

Ameba LS

Language server for the Ameba linter for Crystal lang.

Supports reporting issues while typing, and correcting issues via code actions. Does not require ameba be installed.

Installation

Each release corresponds to an Ameba release.

Ameba LS Ameba
0.2.0 1.7.0
0.1.0 1.6.4

The latest release can be downloaded from GitHub or built from source.

Homebrew

$ brew tap crystal-ameba/ameba
$ brew install ameba-ls

Build from source

$ git clone https://github.com/crystal-ameba/ameba-ls
$ cd ameba-ls
$ make
$ cp ./bin/ameba-ls ~/.local/bin # or somewhere else in PATH

Usage

Zed

The latest version of the Zed Crystal extension has support for ameba-ls if it's installed in PATH.

If you want to use the ameba-ls alone, use the following config:

{
  "languages": {
    "Crystal": {
      "language_servers": ["ameba-ls"],
      "formatter": {
        "external": {
          "command": "crystal",
          "arguments": ["tool", "format", "-"],
        },
      },
      "format_on_save": "on",
    }
  }
}

Sublime Text

Install the Sublime LSP package and configure it to use ameba-ls:

{
  "clients": {
    "ameba-ls": {
      "command": [
        "ameba-ls"
      ],
      "selector": "source.crystal",
      "enabled": true,
    },
  },
}

Logging

Warnings and errors are logged to the client by default. Set the LOG_LEVEL environment variable of the server (e.g. to info or debug) for more detailed logs, which include every message exchanged with the client.

Contributing

  1. Fork it (https://github.com/crystal-ameba/ameba-ls/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Repository

ameba-ls

Owner
Statistic
  • 50
  • 2
  • 6
  • 0
  • 2
  • 4 days ago
  • March 16, 2025
License

MIT License

Links
Synced at

Sun, 22 Nov 2026 01:23:54 GMT

Languages