Skip to content

Commit ffe8f91

Browse files
authored
docs: Add stimulus-lsp to language_servers.md (#2391)
1 parent 36871c2 commit ffe8f91

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/src/language_servers.md

+22
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,28 @@ There are multiple options:
514514
}
515515
```
516516

517+
### Stimulus LSP
518+
519+
1. Install the `stimulus-language-server` package (see [github:marcoroth/stimulus-lsp](https://github.com/marcoroth/stimulus-lsp)):
520+
521+
```sh
522+
npm install -g stimulus-language-server
523+
```
524+
525+
2. Open `Preferences > Package Settings > LSP > Settings` and add the `"stimulus"` client configuration to the `"clients"`:
526+
527+
```jsonc
528+
{
529+
"clients": {
530+
"stimulus": {
531+
"enabled": true,
532+
"command": ["stimulus-language-server", "--stdio"],
533+
"selector": "text.html.rails"
534+
}
535+
}
536+
}
537+
```
538+
517539
### Ruby LSP
518540

519541
1. Install the `ruby-lsp` gem (see [github:Shopify/ruby-lsp](https://github.com/Shopify/ruby-lsp)):

0 commit comments

Comments
 (0)