lang/beancount: remove redundant lsp config
lsp-beancount support was added upstream in emacs-lsp/lsp-mode@b294e74
This commit is contained in:
parent
8862f8694c
commit
a760c679a3
1 changed files with 0 additions and 16 deletions
|
@ -29,22 +29,6 @@ This msut be advised *before* beancount-mode loads, because
|
||||||
|
|
||||||
:config
|
:config
|
||||||
(when (featurep! +lsp)
|
(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!))
|
(add-hook 'beancount-mode-local-vars-hook #'lsp!))
|
||||||
|
|
||||||
(setq beancount-electric-currency t)
|
(setq beancount-electric-currency t)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue