From 5b066abb7d4ee2a9d323d3fd9a15a9f0053063dc Mon Sep 17 00:00:00 2001 From: JenChieh Date: Sun, 17 Mar 2024 19:23:49 -0700 Subject: [PATCH] Ensure startup server after installation --- lsp-ltex.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lsp-ltex.el b/lsp-ltex.el index ec4dea4..579fa7a 100644 --- a/lsp-ltex.el +++ b/lsp-ltex.el @@ -601,7 +601,10 @@ When STORE is non-nil, this will also store the new plist in the directory :server-id 'ltex-ls :download-server-fn (lambda (_client _callback error-callback _update?) - (lsp-package-ensure 'ltex-ls #'lsp-ltex-install-ls error-callback)))) + (lsp-package-ensure 'ltex-ls (lambda (&rest _) + (lsp-ltex-install-ls) + (funcall callback)) + error-callback)))) (provide 'lsp-ltex) ;;; lsp-ltex.el ends here