diff options
| author | Thomas Schneider <qsx@chaotikum.eu> | 2026-07-27 19:49:35 +0200 |
|---|---|---|
| committer | Thomas Schneider <qsx@chaotikum.eu> | 2026-07-27 20:02:56 +0200 |
| commit | 62264ac2ba13b59f7a34c55915c87bf72f386dbe (patch) | |
| tree | e576940e2a365f12e3a7490603c5b805f3737ab9 /dot.emacs.d/init.el | |
| parent | 6ed999daf3c841dda2e306bf55846ba135be5b7d (diff) | |
Emacs: lsp-mode: Add support for LaTeX using digestif
Diffstat (limited to 'dot.emacs.d/init.el')
| -rw-r--r-- | dot.emacs.d/init.el | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/dot.emacs.d/init.el b/dot.emacs.d/init.el index 8663a56..df2b6cc 100644 --- a/dot.emacs.d/init.el +++ b/dot.emacs.d/init.el @@ -184,7 +184,18 @@ :init (setq read-process-output-max (* 1024 1024) ;; 1 MiB gc-cons-threshold 6400000 - lsp-clients-clangd-args '("--header-insertion=never"))) + lsp-clients-clangd-args '("--header-insertion=never")) + :config + (add-to-list 'lsp-language-id-configuration '(LaTeX-mode . "latex")) + + ;; ugly hack to add #'LaTeX-mode + ;; TODO: ⛔ Error (use-package): lsp-mode/:config: Symbol’s value as variable is void: lsp-clients-digestif-executable + (with-eval-after-load 'lsp-tex + (lsp-register-client + (make-lsp-client :new-connection (lsp-stdio-connection lsp-clients-digestif-executable) + :major-modes '(plain-tex-mode latex-mode context-mode texinfo-mode LaTeX-mode) + :priority (if (eq lsp-tex-server 'digestif) 1 -1) + :server-id 'digestif)))) (use-package lsp-ui :commands lsp-ui-mode) (use-package helm-lsp |
