Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

ruby: Document `use_bundler` configuration option (#22498)

Vitaly Slobodina119688a5087
diff --git a/docs/src/languages/ruby.md b/docs/src/languages/ruby.md
index 9bf8b42e42a..13d75cc5f06 100644
--- a/docs/src/languages/ruby.md
+++ b/docs/src/languages/ruby.md
@@ -106,14 +106,14 @@ Solargraph has formatting and diagnostics disabled by default. We can tell Zed t
}
```
-To use Solargraph in the context of the bundle, you can use [folder-specific settings](../configuring-zed.md#settings-files) and specify the absolute path to the [`binstub`](https://bundler.io/v2.5/man/bundle-binstubs.1.html) of Solargraph:
+By default, Solargraph uses `bundle exec` to run in the context of the bundle. To disable that, you can use the `use_bundler` configuration option:
```json
{
"lsp": {
"solargraph": {
- "binary": {
- "path": "<path_to_your_project>/bin/solargraph"
+ "settings": {
+ "use_bundler": false
}
}
}
@@ -156,6 +156,20 @@ Ruby LSP uses pull-based diagnostics which Zed doesn't support yet. We can tell
}
```
+By default, Ruby LSP does not use `bundle exec` to run in the context of the bundle. To enable that, you can use the `use_bundler` configuration option:
+
+```json
+{
+ "lsp": {
+ "ruby-lsp": {
+ "settings": {
+ "use_bundler": true
+ }
+ }
+ }
+}
+```
+
## Setting up `rubocop` LSP
Zed currently doesn't install `rubocop` automatically. To use `rubocop`, you need to install the gem. Zed just looks for an executable called `rubocop` on your `PATH`.
@@ -193,14 +207,14 @@ Rubocop has unsafe autocorrection disabled by default. We can tell Zed to enable
}
```
-To use Rubocop in the context of the bundle, you can use [folder-specific settings](../configuring-zed.md#settings-files) and specify the absolute path to the [`binstub`](https://bundler.io/v2.5/man/bundle-binstubs.1.html) of Rubocop:
+By default, `rubocop` uses `bundle exec` to run in the context of the bundle. To disable that, you can use the `use_bundler` configuration option:
```json
{
"lsp": {
"rubocop": {
- "binary": {
- "path": "<path_to_your_project>/bin/rubocop"
+ "settings": {
+ "use_bundler": false
}
}
}