From 83317b5c83c2b894f66d9429c79fa3855c72c8b4 Mon Sep 17 00:00:00 2001 From: nverno Date: Fri, 18 Aug 2023 05:21:54 -0700 Subject: [PATCH] add check --- clients/lsp-jq.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/clients/lsp-jq.el b/clients/lsp-jq.el index 25d23a6403d..cd53f6a2743 100644 --- a/clients/lsp-jq.el +++ b/clients/lsp-jq.el @@ -23,6 +23,7 @@ ;; LSP client for jq language. ;; ;;; Code: + (require 'lsp-mode) (defgroup lsp-jq nil @@ -30,17 +31,19 @@ :group 'lsp-mode :link '(url-link "https://github.com/wader/jq-lsp")) -(defcustom lsp-jq-executable '("jq-lsp") - "Command to run the Jq language server." +(defcustom lsp-clients-jq-server-executable '("jq-lsp") + "The jq language server executable to use." :group 'lsp-jq :risky t :type '(repeat string)) (lsp-register-client (make-lsp-client - :new-connection (lsp-stdio-connection lsp-jq-executable) + :new-connection (lsp-stdio-connection lsp-clients-jq-server-executable) :major-modes '(jq-mode) :server-id 'jq-lsp)) +(lsp-consistency-check lsp-jq) + (provide 'lsp-jq) ;;; lsp-jq.el ends here