fix(latex): enable LSP on LaTeX-mode-local-vars-hook too

This commit is contained in:
Vu Quoc Huy 2024-08-22 18:29:15 +02:00 committed by GitHub
parent b835e7b6ec
commit c27387ce76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -100,7 +100,8 @@ If no viewer is found, `latex-preview-pane-mode' is used.")
;; Hook LSP, if enabled.
(when (modulep! +lsp)
(add-hook! '(tex-mode-local-vars-hook
latex-mode-local-vars-hook)
latex-mode-local-vars-hook
LaTeX-mode-local-vars-hook)
:append #'lsp!))
;; Define a function to compile the project.
(defun +latex/compile ()