Commit 2baf729 1 parent da9abf3 commit 2baf729 Copy full SHA for 2baf729
File tree 1 file changed +36
-4
lines changed
1 file changed +36
-4
lines changed Original file line number Diff line number Diff line change @@ -489,14 +489,18 @@ There are multiple options:
489
489
490
490
### Sorbet
491
491
492
- 1. Install the sorbet and sorbet- runtime gem (see [github: sorbet/ sorbet](https: // github.com/sorbet/sorbet)):
492
+ 1. Install the ` sorbet` and ` sorbet-runtime` gem (see [github: sorbet/ sorbet](https: // github.com/sorbet/sorbet)):
493
493
494
- gem install sorbet
495
- gem install sorbet- runtime
494
+ ` ` ` sh
495
+ gem install sorbet
496
+ gem install sorbet-runtime
497
+ ` ` `
496
498
497
499
If you have a Gemfile, using bundler, add sorbet and sorbet- runtime to your Gemfile and run:
498
500
499
- bundle install
501
+ ` ` ` sh
502
+ bundle install
503
+ ` ` `
500
504
501
505
2. Open ` Preferences > Package Settings > LSP > Settings` and add the ` "sorbet"` client configuration to the ` "clients"` :
502
506
@@ -512,6 +516,34 @@ There are multiple options:
512
516
}
513
517
` ` `
514
518
519
+ ### Ruby LSP
520
+
521
+ 1. Install the ` ruby-lsp` gem (see [github: Shopify/ ruby- lsp](https: // github.com/Shopify/ruby-lsp)):
522
+
523
+ ` ` ` sh
524
+ gem install ruby-lsp
525
+ ` ` `
526
+
527
+ 2. Open ` Preferences > Package Settings > LSP > Settings` and add the ` "ruby-lsp"` client configuration to the ` "clients"` :
528
+
529
+ ` ` ` jsonc
530
+ {
531
+ "clients": {
532
+ "ruby-lsp": {
533
+ "enabled": true,
534
+ "command": ["ruby-lsp"],
535
+ "selector": "source.ruby | text.html.ruby",
536
+ "initializationOptions": {
537
+ "enabledFeatures": {
538
+ "diagnostics": true
539
+ },
540
+ "experimentalFeaturesEnabled": true
541
+ }
542
+ }
543
+ }
544
+ }
545
+ ` ` `
546
+
515
547
## Rust
516
548
517
549
Follow installation instructions on [LSP - rust- analyzer](https: // github.com/sublimelsp/LSP-rust-analyzer).
You can’t perform that action at this time.
0 commit comments