diff --git a/docs/src/language_servers.md b/docs/src/language_servers.md index 329017bb7..5fd037697 100644 --- a/docs/src/language_servers.md +++ b/docs/src/language_servers.md @@ -489,14 +489,18 @@ There are multiple options: ### Sorbet -1. Install the sorbet and sorbet-runtime gem (see [github:sorbet/sorbet](https://github.com/sorbet/sorbet)): +1. Install the `sorbet` and `sorbet-runtime` gem (see [github:sorbet/sorbet](https://github.com/sorbet/sorbet)): - gem install sorbet - gem install sorbet-runtime + ```sh + gem install sorbet + gem install sorbet-runtime + ``` If you have a Gemfile, using bundler, add sorbet and sorbet-runtime to your Gemfile and run: - bundle install + ```sh + bundle install + ``` 2. Open `Preferences > Package Settings > LSP > Settings` and add the `"sorbet"` client configuration to the `"clients"`: @@ -512,6 +516,34 @@ There are multiple options: } ``` +### Ruby LSP + +1. Install the `ruby-lsp` gem (see [github:Shopify/ruby-lsp](https://github.com/Shopify/ruby-lsp)): + + ```sh + gem install ruby-lsp + ``` + +2. Open `Preferences > Package Settings > LSP > Settings` and add the `"ruby-lsp"` client configuration to the `"clients"`: + + ```jsonc + { + "clients": { + "ruby-lsp": { + "enabled": true, + "command": ["ruby-lsp"], + "selector": "source.ruby | text.html.ruby", + "initializationOptions": { + "enabledFeatures": { + "diagnostics": true + }, + "experimentalFeaturesEnabled": true + } + } + } + } + ``` + ## Rust Follow installation instructions on [LSP-rust-analyzer](https://github.com/sublimelsp/LSP-rust-analyzer).