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

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Andy Waite <13400+andyw8@users.noreply.github.com>
  • Loading branch information
st0012 and andyw8 authored Sep 22, 2023
1 parent 7f915e9 commit f792fbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ To make sure that the Ruby LSP can find the version manager scripts, make sure t
configuration script (e.g.: ~/.bashrc, ~/.zshrc) and that the SHELL environment variable is set and pointing to the
default shell.

> **Note**
> [!NOTE]
>
> For manager-specific notes and how to set up custom activation for managers that are not listed above,
please see [version managers](VERSION_MANAGERS.md).
Expand Down
6 changes: 3 additions & 3 deletions VERSION_MANAGERS.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
## Chruby

If you use `chruby` but don't have `.ruby-version` in a project, you can add `.ruby-version` to its parent folder as a fallback.
If you use `chruby` but don't have a `.ruby-version` file in the project root, you can add `.ruby-version` to its parent folder as a fallback.

For example, if `/projects/my_project` doesn't have `.ruby-version`, `chruby` would read `/projects/.ruby-version` instead.

## Custom activation

If you're using a different version manager that's not supported by us or if you're manually inserting the Ruby
If you're using a different version manager that's not supported by this extension or if you're manually inserting the Ruby
executable into the PATH, you will probably need to define custom activation so that the extension can find the correct
Ruby.

For these cases, set `rubyLsp.rubyVersionManager` to `"custom"` and then set `rubyLsp.customRubyCommand` to a shell
command that will activate the right Ruby version or simply add the Ruby bin folder to the PATH. Some examples:
command that will activate the right Ruby version or add the Ruby `bin` folder to the `PATH`. Some examples:

```jsonc
{
Expand Down

0 comments on commit f792fbf

Please sign in to comment.