Minor fixes in docs and check for :lang lsp.

This commit is contained in:
M. Yas. Davoodeh 2020-03-19 19:19:35 +03:30
parent d046d35aeb
commit 6b68dcceee
3 changed files with 5 additions and 6 deletions

View file

@ -30,7 +30,8 @@ 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`.
+ =+lsp= Start LSP automatically in `tex-mode-hook`. This
requires the =:tools lsp= module.
** Plugins
+ [[http://www.gnu.org/software/auctex/][auctex]]

View file

@ -181,11 +181,9 @@ If no viewers are found, `latex-preview-pane' is used.")
(add-to-list '+latex--company-backends #'+latex-symbols-company-backend nil #'eq))
(after! tex-mode
(when (featurep! +lsp)
(when (and (featurep! +lsp) (featurep! :tools 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!))))
(add-hook 'latex-mode-local-vars-hook #'lsp!)))
;; bibtex + reftex
(load! "+ref")