From a584501606de359bfc6b64b117029737edc6c357 Mon Sep 17 00:00:00 2001 From: restitux Date: Sun, 26 Mar 2023 20:49:10 -0600 Subject: [PATCH] Use crystalline instead of scry for Crystal (#4003) --- CHANGELOG.org | 1 + clients/lsp-crystal.el | 14 +++++++------- docs/lsp-clients.json | 6 +++--- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.org b/CHANGELOG.org index 3854efb3d8..5d02cf3a02 100644 --- a/CHANGELOG.org +++ b/CHANGELOG.org @@ -71,6 +71,7 @@ one installed by lsp-mode. * Add [[https://github.com/charliermarsh/ruff-lsp][ruff-lsp]] support (additional server for Python). * Update documentation of Vue3 install server + * Change Crystal server from ~scry~ to ~crystalline~ ** Release 8.0.0 * Add ~lsp-clients-angular-node-get-prefix-command~ to get the Angular server from another location which is still has ~/lib/node_modules~ in it. * Set ~lsp-clients-angular-language-server-command~ after the first connection to speed up subsequent connections. diff --git a/clients/lsp-crystal.el b/clients/lsp-crystal.el index f0aca59c84..c4479328cd 100644 --- a/clients/lsp-crystal.el +++ b/clients/lsp-crystal.el @@ -26,21 +26,21 @@ (require 'lsp-mode) -(defgroup lsp-scry nil - "LSP support for Crystal via scry." +(defgroup lsp-crystalline nil + "LSP support for Crystal via crystalline." :group 'lsp-mode - :link '(url-link "https://github.com/crystal-lang-tools/scry")) + :link '(url-link "https://github.com/elbywan/crystalline")) -(defcustom lsp-clients-crystal-executable '("scry" "--stdio") - "Command to start the scry language server." - :group 'lsp-scry +(defcustom lsp-clients-crystal-executable '("crystalline" "--stdio") + "Command to start the crystalline language server." + :group 'lsp-crystalline :risky t :type 'file) (lsp-register-client (make-lsp-client :new-connection (lsp-stdio-connection lsp-clients-crystal-executable) :major-modes '(crystal-mode) - :server-id 'scry)) + :server-id 'crystalline)) (lsp-consistency-check lsp-crystal) diff --git a/docs/lsp-clients.json b/docs/lsp-clients.json index 88031b3e60..69f83614ab 100644 --- a/docs/lsp-clients.json +++ b/docs/lsp-clients.json @@ -128,9 +128,9 @@ { "name": "crystal", "full-name": "Crystal", - "server-name": "scry", - "server-url": "https://github.com/crystal-lang-tools/scry", - "installation-url": "https://github.com/crystal-lang-tools/scry#installation", + "server-name": "crystalline", + "server-url": "https://github.com/elbywan/crystalline", + "installation-url": "https://github.com/elbywan/crystalline#installation", "debugger": "Not available" }, {