Crystal support for lsp-mode using the scry.
First, install the scry.
Second, install this repo and lsp-mode.
- From source
-
Clone this rep and lsp-mode to suitable paths, and them to your load path:
(add-to-list 'load-path "/path/to/lsp-mode") (add-to-list 'load-path "/path/to/lsp-crystal")
- From MELPA
- TODO
Finally, add the code below to your .emacs file:
(with-eval-after-load 'lsp-mode
(require 'lsp-crystal)
(add-hook 'crystal-mode-hook (lambda ()
;; disable unsupported features
(setq-local lsp-enable-eldoc nil)
(setq-local lsp-enable-eldoc nil)
(setq-local lsp-enable-codeaction nil)
(lsp-crystal-enable))))