Skip to content

MaskRay/lsp-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

lsp-ruby

Ruby support for lsp-mode using the solargraph gem.

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 to suitable paths, and add them to your load path:

(add-to-list 'load-path "<path to lsp-mode>")
(add-to-list 'load-path "<path to lsp-ruby>")

From MELPA

Install the packages:

  • lsp-mode
  • lsp-ruby

Usage

Enabling lsp-ruby

(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

About

Emacs LSP support for Ruby, using the language_server gem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors