Using Herb in Editors
The Herb Language Server provides intelligent language features for HTML+ERB files across multiple editors. With built-in support for diagnostics, syntax highlighting, and upcoming formatting capabilities, you can enhance your ERB development workflow in your favorite editor.
Available Integrations
- Cursor - Available through the Open VSX Registry
- Neovim - LSP configuration with multiple setup options
- Vim - Traditional Vim integration
- Visual Studio Code - Full-featured extension available on the Visual Studio Marketplace
- Zed - Built into the official Ruby extension
Coming Soon
- RubyMine - JetBrains IDE support (not yet available)
Manual Installation
For editors not listed above, you can use the Herb Language Server with any editor that supports the Language Server Protocol.
Install globally
bash
npm install -g @herb-tools/language-server
bash
yarn global add @herb-tools/language-server
bash
pnpm add -g @herb-tools/language-server
bash
bun add -g @herb-tools/language-server
Run the server
bash
herb-language-server --stdio
Options
Usage: herb-language-server [options]
Options:
--stdio use stdio
--node-ipc use node-ipc
--socket=<port> use socket
Quick Start with NPX
Run without installing:
bash
npx @herb-tools/language-server --stdio