lang/beancount: remove redundant lsp config

lsp-beancount support was added upstream in emacs-lsp/lsp-mode@b294e74
This commit is contained in:
Henrik Lissner 2021-07-13 14:38:34 -04:00
parent 8862f8694c
commit a760c679a3

View file

@ -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)