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
- Host: GitHub
- URL: https://github.com/maskray/lsp-ruby
- Owner: MaskRay
- License: gpl-3.0
- Created: 2018-10-23T06:35:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-23T06:35:56.000Z (over 7 years ago)
- Last Synced: 2025-01-29T02:27:12.541Z (about 1 year ago)
- Language: Emacs Lisp
- Size: 21.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```