From c2ae65d0535a916b76aafb1c2fee654515e4ae70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zaj=C4=85c?= Date: Fri, 30 Jun 2023 16:19:47 +0200 Subject: [PATCH 1/5] Add configuration instructions for rtx version manager --- README.md | 2 ++ VERSION_MANGERS.md | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 VERSION_MANGERS.md diff --git a/README.md b/README.md index fd3f361d..30a8a067 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,8 @@ command that will activate the right Ruby version or simply add the Ruby bin fol } ``` +See [version managers](VERSION_MANAGERS.md) for user-contributed configuration examples. + #### Configuring a formatter The tool to be used for formatting files can be configured with the following setting. diff --git a/VERSION_MANGERS.md b/VERSION_MANGERS.md new file mode 100644 index 00000000..939e61e8 --- /dev/null +++ b/VERSION_MANGERS.md @@ -0,0 +1,16 @@ +# Custom version managers + +Below you can find user-contributed configurations for less common version managers. + +## rtx + +[rtx](https://github.com/jdxcode/rtx) is a Rust clone compatible with asdf. You can use it by adding the following +snippet to your user configuration JSON + + +```json +{ + "rubyLsp.rubyVersionManager": "custom", + "rubyLsp.customRubyCommand": "eval \"$(rtx env -s bash|zsh)\"", +} +``` From 729c713a24ddc5df3c4efd47938501df44086724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zaj=C4=85c?= Date: Fri, 30 Jun 2023 16:23:02 +0200 Subject: [PATCH 2/5] Rename file --- VERSION_MANGERS.md => VERSION_MANAGERS.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename VERSION_MANGERS.md => VERSION_MANAGERS.md (100%) diff --git a/VERSION_MANGERS.md b/VERSION_MANAGERS.md similarity index 100% rename from VERSION_MANGERS.md rename to VERSION_MANAGERS.md From e965ec94a3b8f84fd4c8a492186ca8d6b1079229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zaj=C4=85c?= Date: Fri, 30 Jun 2023 16:24:04 +0200 Subject: [PATCH 3/5] Trim whitespace --- VERSION_MANAGERS.md | 1 - 1 file changed, 1 deletion(-) diff --git a/VERSION_MANAGERS.md b/VERSION_MANAGERS.md index 939e61e8..477962b2 100644 --- a/VERSION_MANAGERS.md +++ b/VERSION_MANAGERS.md @@ -7,7 +7,6 @@ Below you can find user-contributed configurations for less common version manag [rtx](https://github.com/jdxcode/rtx) is a Rust clone compatible with asdf. You can use it by adding the following snippet to your user configuration JSON - ```json { "rubyLsp.rubyVersionManager": "custom", From d13722ef31d2f35fd457610bacbdf7260aa138ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zaj=C4=85c?= Date: Fri, 28 Jul 2023 16:37:54 +0200 Subject: [PATCH 4/5] Update VERSION_MANAGERS.md Co-authored-by: Vinicius Stock --- VERSION_MANAGERS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION_MANAGERS.md b/VERSION_MANAGERS.md index 477962b2..6a0cee9d 100644 --- a/VERSION_MANAGERS.md +++ b/VERSION_MANAGERS.md @@ -10,6 +10,6 @@ snippet to your user configuration JSON ```json { "rubyLsp.rubyVersionManager": "custom", - "rubyLsp.customRubyCommand": "eval \"$(rtx env -s bash|zsh)\"", + "rubyLsp.customRubyCommand": "eval \"$(rtx env -s zsh)\"", // Instructions for zsh, change for bash or fish } ``` From 11e550b4f60ae2d4274a41eb50e9181136574913 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zaj=C4=85c?= Date: Thu, 3 Aug 2023 11:29:46 +0200 Subject: [PATCH 5/5] Lint --- VERSION_MANAGERS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION_MANAGERS.md b/VERSION_MANAGERS.md index 6a0cee9d..f38276d2 100644 --- a/VERSION_MANAGERS.md +++ b/VERSION_MANAGERS.md @@ -10,6 +10,6 @@ snippet to your user configuration JSON ```json { "rubyLsp.rubyVersionManager": "custom", - "rubyLsp.customRubyCommand": "eval \"$(rtx env -s zsh)\"", // Instructions for zsh, change for bash or fish + "rubyLsp.customRubyCommand": "eval \"$(rtx env -s zsh)\"" // Instructions for zsh, change for bash or fish } ```