Skip to content

Commit fbb740b

Browse files
authored
Docs: add instructions for Herb language server (#2610)
1 parent 4a6dc06 commit fbb740b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

docs/src/language_servers.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,27 @@ There are multiple options:
705705
}
706706
```
707707
708+
### Herb
709+
1. Install the `herb-language-server` package (see [github:marcoroth/herb](https://github.com/marcoroth/herb))
710+
711+
```sh
712+
npm install -g @herb-tools/language-server
713+
```
714+
715+
2. Open `Preferences > Package Settings > LSP > Settings` and add the `"herb"` client configuration to the `"clients"`:
716+
717+
```jsonc
718+
{
719+
"clients": {
720+
"herb": {
721+
"enabled": true,
722+
"command": ["herb-language-server", "--stdio"],
723+
"selector": "text.html.rails"
724+
}
725+
}
726+
}
727+
```
728+
708729
## Rust
709730
710731
Follow installation instructions on [LSP-rust-analyzer](https://github.com/sublimelsp/LSP-rust-analyzer).

0 commit comments

Comments
 (0)