Herb Language Server
Package: @herb-tools/language-server
Language Server Protocol integration for HTML-aware ERB parsing using the Herb Parser.
Status
Available Now - Ready for production use
Installation
Visual Studio Code
Install the Herb LSP extension from the Visual Studio Marketplace.
Cursor (Open VSX Registry)
Install the Herb LSP extension from the Open VSX Registry.
Zed
The Herb Language Server is part of the official Ruby extension for Zed. Just install the Ruby extension in Zed and you should be good to go.
Read more in the documentation.
Neovim (using nvim-lspconfig
)
Coming soon, see #3925.
Manual Installation
You can use the language server in any editor that supports the Language Server Protocol.
Install
NPM (Global)
bash
npm install -g @herb-tools/language-server
Yarn (Global)
bash
yarn global add @herb-tools/language-server
Run
bash
herb-language-server --stdio
Usage: herb-language-server [options]
Options:
--stdio use stdio
--node-ipc use node-ipc
--socket=<port> use socket
NPX
Alternatively you can also run the language server directly with npx
without installing anything:
bash
npx @herb-tools/language-server --stdio