From ffe8f9148b2b7b2cf5cbf0707837d02efa91b072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20Carretero?= Date: Wed, 10 Jan 2024 20:53:44 +0100 Subject: [PATCH] docs: Add `stimulus-lsp` to language_servers.md (#2391) --- docs/src/language_servers.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/src/language_servers.md b/docs/src/language_servers.md index dd89010d0..00d094a7b 100644 --- a/docs/src/language_servers.md +++ b/docs/src/language_servers.md @@ -514,6 +514,28 @@ There are multiple options: } ``` +### Stimulus LSP + +1. Install the `stimulus-language-server` package (see [github:marcoroth/stimulus-lsp](https://github.com/marcoroth/stimulus-lsp)): + + ```sh + npm install -g stimulus-language-server + ``` + +2. Open `Preferences > Package Settings > LSP > Settings` and add the `"stimulus"` client configuration to the `"clients"`: + + ```jsonc + { + "clients": { + "stimulus": { + "enabled": true, + "command": ["stimulus-language-server", "--stdio"], + "selector": "text.html.rails" + } + } + } + ``` + ### Ruby LSP 1. Install the `ruby-lsp` gem (see [github:Shopify/ruby-lsp](https://github.com/Shopify/ruby-lsp)):