An open API service indexing awesome lists of open source software.

https://github.com/maskray/lsp-ruby

Emacs LSP support for Ruby, using the language_server gem
https://github.com/maskray/lsp-ruby

Last synced: 3 months ago
JSON representation

Emacs LSP support for Ruby, using the language_server gem

Awesome Lists containing this project

README

          

lsp-ruby
========

Ruby support for lsp-mode using the [solargraph gem](https://github.com/castwide/solargraph).

## News

Note: if you recently started getting an error like `Could not find command "stdio".`, run `gem update solargraph`.

## Installation

### From source

Clone this repository and [lsp-mode](https://github.com/emacs-lsp/lsp-mode) to
suitable paths, and add them to your load path:

```emacs-lisp
(add-to-list 'load-path "")
(add-to-list 'load-path "")
```

### From MELPA

Install the packages:
- `lsp-mode`
- `lsp-ruby`

## Usage
### Enabling `lsp-ruby`

```emacs-lisp
(require 'lsp-ruby)
(add-hook 'ruby-mode-hook #'lsp-ruby-enable)

;; Optional, for short messages on hover:
;; (setq lsp-hover-text-function 'lsp--text-document-signature-help)
```

### Install the server

```
gem install solargraph
```