Giter Club home page Giter Club logo

Comments (5)

eli-tziperman avatar eli-tziperman commented on June 14, 2024

texlab seems to work for me now under AUCtex, but lsp-grammarly does not. Perhaps this is related to this issue?

from lsp-mode.

rossedwards64 avatar rossedwards64 commented on June 14, 2024

auctex modes are still not working for me in lsp-mode, but i've been using this hack as a workaround:

(maphash (lambda (k v)
	       (let ((mode-list (lsp--client-major-modes v))
		     (tex-mode-list '(tex-mode latex-mode))
		     (auctex-mode-list '(TeX-mode LaTeX-mode)))
		 (when (and (equal k 'texlab2)
			    (cl-intersection mode-list tex-mode-list))
		   (progn
		     (dolist (mode auctex-mode-list)
		       (setf (lsp--client-major-modes v)
			     (cl-pushnew mode mode-list)))
		     (add-to-list 'lsp-language-id-configuration '(\`mode . "latex"))))))
	     lsp-clients)

from lsp-mode.

rromoli avatar rromoli commented on June 14, 2024

I still get this error even if I add the code from above LSP :: The following servers support current file but do not have automatic installation: texlab2

from lsp-mode.

rromoli avatar rromoli commented on June 14, 2024

I add LaTeX-mode to the lsp-register-client in the file lsp-tex.el ad it seems to work. I'm not elisp expert so probably my correction is trivial and perhaps not sufficient. Hope that someone more expert than me could fix it in the new version.

(lsp-register-client
 (make-lsp-client :new-connection (lsp-stdio-connection lsp-clients-texlab-executable)
                  :major-modes '(plain-tex-mode latex-mode LaTeX-mode)
                  :priority (if (eq lsp-tex-server 'texlab) 1 -1)
                  :server-id 'texlab))

from lsp-mode.

dschrempf avatar dschrempf commented on June 14, 2024

This is still a problem here. I think we only need to add LaTeX-mode to the lsp-language-id-configuration.

from lsp-mode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.