Fix tex-lsp related commented issues
This commit is contained in:
parent
76ae9e687a
commit
e4b570c9ae
3 changed files with 8 additions and 6 deletions
|
@ -114,7 +114,7 @@ Modules that bring support for a language or group of languages to Emacs.
|
||||||
+ [[file:../modules/lang/javascript/README.org][javascript]] =+lsp= - JavaScript, TypeScript, and CoffeeScript support
|
+ [[file:../modules/lang/javascript/README.org][javascript]] =+lsp= - JavaScript, TypeScript, and CoffeeScript support
|
||||||
+ julia - TODO
|
+ julia - TODO
|
||||||
+ kotlin =+lsp+= - TODO
|
+ kotlin =+lsp+= - TODO
|
||||||
+ [[file:../modules/lang/latex/README.org][latex]] =+latexmk +cdlatex= =+lsp= - TODO
|
+ [[file:../modules/lang/latex/README.org][latex]] =+latexmk +cdlatex +lsp= - TODO
|
||||||
+ lean - TODO
|
+ lean - TODO
|
||||||
+ [[file:../modules/lang/ledger/README.org][ledger]] - TODO
|
+ [[file:../modules/lang/ledger/README.org][ledger]] - TODO
|
||||||
+ lua =+moonscript= - TODO
|
+ lua =+moonscript= - TODO
|
||||||
|
|
|
@ -30,8 +30,8 @@ Provide a helping hand when working with LaTeX documents.
|
||||||
** Module Flags
|
** Module Flags
|
||||||
+ =+latexmk= Use LatexMk instead of LaTeX to compile documents.
|
+ =+latexmk= Use LatexMk instead of LaTeX to compile documents.
|
||||||
+ =+cdlatex= Enable [[https://github.com/cdominik/cdlatex][cdlatex]] for fast math insertion.
|
+ =+cdlatex= Enable [[https://github.com/cdominik/cdlatex][cdlatex]] for fast math insertion.
|
||||||
+ =+lsp= Start LSP automatically in `tex-mode-hook`. This
|
+ =+lsp= Start LSP automatically in `tex-mode-hook`. This requires the =:tools
|
||||||
requires the =:tools lsp= module.
|
lsp= module. Supported servers are `digestif` and `TexLab`.
|
||||||
|
|
||||||
** Plugins
|
** Plugins
|
||||||
+ [[http://www.gnu.org/software/auctex/][auctex]]
|
+ [[http://www.gnu.org/software/auctex/][auctex]]
|
||||||
|
|
|
@ -76,9 +76,10 @@ If no viewers are found, `latex-preview-pane' is used.")
|
||||||
;; quotes or not, via `+latex-enable-plain-double-quotes'
|
;; quotes or not, via `+latex-enable-plain-double-quotes'
|
||||||
(sp-local-pair modes "``" nil :unless '(:add sp-in-math-p))))
|
(sp-local-pair modes "``" nil :unless '(:add sp-in-math-p))))
|
||||||
;; Hook lsp if enabled
|
;; Hook lsp if enabled
|
||||||
(when (and (featurep! +lsp) (featurep! :tools lsp))
|
(when (featurep! +lsp)
|
||||||
(add-hook 'tex-mode-local-vars-hook #'lsp!)
|
(add-hook! '(tex-mode-local-vars-hook
|
||||||
(add-hook 'latex-mode-local-vars-hook #'lsp!)))
|
latex-mode-local-vars-hook)
|
||||||
|
#'lsp!)))
|
||||||
|
|
||||||
|
|
||||||
(after! latex
|
(after! latex
|
||||||
|
@ -178,6 +179,7 @@ If no viewers are found, `latex-preview-pane' is used.")
|
||||||
(add-to-list '+latex--company-backends #'company-auctex-environments nil #'eq)
|
(add-to-list '+latex--company-backends #'company-auctex-environments nil #'eq)
|
||||||
(add-to-list '+latex--company-backends #'company-auctex-macros nil #'eq))
|
(add-to-list '+latex--company-backends #'company-auctex-macros nil #'eq))
|
||||||
|
|
||||||
|
|
||||||
(use-package! company-math
|
(use-package! company-math
|
||||||
:when (featurep! :completion company)
|
:when (featurep! :completion company)
|
||||||
:defer t
|
:defer t
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue