File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,11 @@ new H2 header in this file containing the instructions. -->
11
11
12
12
## Emacs Eglot
13
13
14
- [ Eglot] ( https://github.com/joaotavora/eglot ) runs solargraph server by default. To set it up with ruby-lsp you need to put that in your init file:
14
+ [ Eglot] ( https://github.com/joaotavora/eglot ) runs solargraph server by default. To set it up with ruby-lsp you need to
15
+ put that in your init file:
15
16
``` el
16
17
(with-eval-after-load 'eglot
17
18
(add-to-list 'eglot-server-programs '((ruby-mode ruby-ts-mode) "ruby-lsp")))
18
19
```
19
- Or if you want to run it with bundler:
20
- ``` el
21
- (with-eval-after-load 'eglot
22
- (add-to-list 'eglot-server-programs '((ruby-mode ruby-ts-mode) "bundle" "exec" "ruby-lsp")))
23
- ```
24
-
20
+
25
21
When you run ` eglot ` command it will run ` ruby-lsp ` process for you.
Original file line number Diff line number Diff line change @@ -27,7 +27,11 @@ The gem can be installed by doing
27
27
gem install ruby-lsp
28
28
```
29
29
30
- If you decide to add the gem to the bundle, it is not necessary to require it.
30
+ ** NOTE** : starting with v0.7.0, it is no longer recommended to add the ` ruby-lsp ` to the bundle. The gem will generate a
31
+ custom bundle in ` .ruby-lsp/Gemfile ` which is used to identify the versions of dependencies that should be used for the
32
+ application (e.g.: the correct RuboCop version).
33
+
34
+ For older versions, if you decide to add the gem to the bundle, it is not necessary to require it.
31
35
``` ruby
32
36
group :development do
33
37
gem " ruby-lsp" , require: false
You can’t perform that action at this time.
0 commit comments