Added +lsp to Tex-Mode.

This commit is contained in:
M. Yas. Davoodeh 2020-03-19 13:42:06 +03:30
parent 4b20c7206e
commit d046d35aeb
2 changed files with 7 additions and 0 deletions

View file

@ -30,6 +30,7 @@ Provide a helping hand when working with LaTeX documents.
** Module Flags
+ =+latexmk= Use LatexMk instead of LaTeX to compile documents.
+ =+cdlatex= Enable [[https://github.com/cdominik/cdlatex][cdlatex]] for fast math insertion.
+ =+lsp= Start LSP automatically in `tex-mode-hook`.
** Plugins
+ [[http://www.gnu.org/software/auctex/][auctex]]

View file

@ -180,6 +180,12 @@ If no viewers are found, `latex-preview-pane' is used.")
:init
(add-to-list '+latex--company-backends #'+latex-symbols-company-backend nil #'eq))
(after! tex-mode
(when (featurep! +lsp)
(add-hook 'tex-mode-local-vars-hook #'lsp!)
(add-hook 'latex-mode-local-vars-hook #'lsp!)
(after! yatex
(add-hook 'yatex-mode-local-vars-hook #'lsp!))))
;; bibtex + reftex
(load! "+ref")