From a760c679a3b4b8f33b5c523e4643185c336fe375 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 13 Jul 2021 14:38:34 -0400 Subject: [PATCH] lang/beancount: remove redundant lsp config lsp-beancount support was added upstream in emacs-lsp/lsp-mode@b294e74 --- modules/lang/beancount/config.el | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/modules/lang/beancount/config.el b/modules/lang/beancount/config.el index c5fa6adb8..dfd0696bb 100644 --- a/modules/lang/beancount/config.el +++ b/modules/lang/beancount/config.el @@ -29,22 +29,6 @@ This msut be advised *before* beancount-mode loads, because :config (when (featurep! +lsp) - (after! lsp-mode - ;; TODO PR this upstream - (add-to-list 'lsp-language-id-configuration '(beancount-mode . "beancount")) - (defvar lsp-beancount-langserver-executable "beancount-langserver") - (defvar lsp-beancount-journal-file nil) - (defvar lsp-beancount-python-interpreter - (or (executable-find "python3") - (executable-find "python"))) - (lsp-register-client - (make-lsp-client :new-connection - (lsp-stdio-connection `(,lsp-beancount-langserver-executable "--stdio")) - :major-modes '(beancount-mode) - :initialization-options - `((journalFile . ,lsp-beancount-journal-file) - (pythonPath . ,lsp-beancount-python-interpreter)) - :server-id 'beancount-ls))) (add-hook 'beancount-mode-local-vars-hook #'lsp!)) (setq beancount-electric-currency t)