Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Latest commit

 

History

History
39 lines (28 loc) · 1.14 KB

ruby.md

File metadata and controls

39 lines (28 loc) · 1.14 KB

Ruby

Setup

Zed currently doesn't install Solargraph automatically. To use Solargraph, you need to install the gem. Zed just looks for an executable called solargraph on your PATH.

You can install the gem manually with the following command:

gem install solargraph

Alternatively, if your project uses Bundler, you can add the Solargraph gem to your Gemfile:

gem 'solargraph', group: :development

Solargraph has formatting and diagnostics disabled by default. We can tell Zed to enable them by adding the following to your settings.json:

{
   "lsp": {
      "solargraph": {
         "initialization_options": {
            "diagnostics": true,
            "formatting": true
         }
      }
   }
}

Configuration

Solargraph reads its configuration from a file called .solargraph.yml in the root of your project. For more information about this file, see the Solargraph configuration documentation.