Ruby support for lsp-mode using the solargraph gem.
Note: if you recently started getting an error like Could not find command "stdio"., run gem update solargraph.
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>")Install the packages:
lsp-modelsp-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)gem install solargraph