]> git.eshelyaron.com Git - emacs.git/commit
Offer better control over "languageid" value sent to lsp
authorrvs314 <71688932+rvs314@users.noreply.github.com>
Fri, 26 Mar 2021 10:08:03 +0000 (06:08 -0400)
committerGitHub <noreply@github.com>
Fri, 26 Mar 2021 10:08:03 +0000 (10:08 +0000)
commit602004dbb5286e20fffae9c034b89aab994ad826
treeefd2209d5a8eef88e6008db9c27b62fe67ae8488
parent8a5f63d8bd91a2ff55c0e78ff8e893c79d0f5f94
Offer better control over "languageid" value sent to lsp

Handles the issue of languages whose major mode has a
different name than the name that the LSP server expects for
the language.  One can now:

(put 'favourite-major-mode 'eglot-language-id "foobarbaz")

And "foobarbaz" will be used as the LSP "languageId" value.

* eglot.el (eglot--TextDocumentItem): Consult 'eglot-language-id.

Copyright-paperwork-exempt: yes
GitHub-reference: fix https://github.com/joaotavora/eglot/issues/525
lisp/progmodes/eglot.el