ROCKTAKEY / lsp-latex

Emacs lsp-mode client for LaTeX, on texlab.
GNU General Public License v3.0
69 stars 4 forks source link

[Question] Format bibtex files #16

Closed swarnendubiswas closed 4 years ago

swarnendubiswas commented 4 years ago

It seems texlab supports formatting .bib files. How can we use/invoke that functionality with lsp-latex? My .bib files open in bibtex-mode.

ROCKTAKEY commented 4 years ago

@swarnendubiswas Thanks for your telling me that. Now you can use lsp-latex, running lsp on buffer with bibtex-mode. Or add to your init.el:

(with-eval-after-load "bibtex"
 (add-hook 'bibtex-mode-hook 'lsp))
ROCKTAKEY commented 4 years ago

@swarnendubiswas If you cannot turn on lsp-latex on bibtex, please reopen this issue.

swarnendubiswas commented 4 years ago

@ROCKTAKEY Thanks it works.