Skip to content

Commit

Permalink
Allow LSP server binary customization
Browse files Browse the repository at this point in the history
Allow for custom paths to the scry binary, or even other language servers

squash! Allow LSP server binary customization
  • Loading branch information
robbyoconnor committed Oct 1, 2019
1 parent 8a6e5e4 commit 9595498
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lsp-crystal.el
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,16 @@
(require 'lsp-mode)
(require 'crystal-mode)


(defcustom lsp-server-crystal-scry "scry"
"Path to the scry binary"
:type 'string
:group 'lsp-crystal)


(lsp-register-client
(make-lsp-client :new-connection
(lsp-stdio-connection (lambda () (cons "crystal" #'crystal-find-project-root "scry")))
(lsp-stdio-connection lsp-server-crystal-scry)
:major-modes '(crystal-mode)
:priority 0
:server-id 'scry))
Expand Down

0 comments on commit 9595498

Please sign in to comment.