talira

Ruby LSP

Shopify's open source language server for Ruby, with a VS Code extension

open sourceMITfree

Ruby LSP is Shopify's open source implementation of the language server protocol for Ruby: hover, go-to-definition, completion, references and rename, diagnostics and formatting, code actions, inlay hints, semantic highlighting and ERB support, with add-ons that extend it (for Rails among others). Its VS Code extension adds a dependencies view, Rails generator integrations, a debug client, version manager integration and a test explorer; Emacs, Neovim, Sublime Text and Zed can run the server too.

Problems it solves

  • get go-to-definition and autocomplete for Ruby in my editor
  • a Ruby language server that works with VS Code, Neovim and Zed
  • run and debug my Ruby tests from VS Code's test explorer

Features

  • Go-to-definition, completion, references and rename
  • Diagnostics and formatting
  • Semantic highlighting and inlay hints
  • ERB support
  • Add-ons
  • VS Code test explorer and debug client

Alternatives

The same job

These do what Ruby LSP does.

  1. gopls The language server for Go
  2. Pyrefly A fast type checker and language server for Python, written in Rust
  3. Java Language Server A Java language server built on the Java compiler API, for VS Code, Vim, Emacs, Kate and Sublime
  4. TypeScript Language Server Language Server Protocol wrapper around TypeScript's tsserver
  5. Lua Language Server A language server for Lua with type checking, completion and diagnostics, written in Lua
  6. rust-analyzer Bringing a great IDE experience to the Rust programming language

Compare Ruby LSP with the top 3