Skip to content

brantou/lsp-crystal.el

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lsp-crystal

Crystal support for lsp-mode using the scry.

Setup

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))))