]> git.eshelyaron.com Git - emacs.git/commitdiff
Add language server for Odin
authorEllis Kenyo <me@elken.dev>
Tue, 7 Jan 2025 15:43:58 +0000 (15:43 +0000)
committerEshel Yaron <me@eshelyaron.com>
Sun, 12 Jan 2025 10:58:56 +0000 (11:58 +0100)
* lisp/progmodes/eglot.el (eglot-server-programs): Add language server
for the Odin programming language.  (Bug#75421)

Copyright-paperwork-exempt: yes
(cherry picked from commit 4210e065648dcc4fd7fbc22298047d19d679c84f)

lisp/progmodes/eglot.el

index 7313f2876d2a1bc2d8ef5ad9880e0dd51f373ecb..b8ce0f9811cd84b7db46fc73e20f5d0ae207eba1 100644 (file)
@@ -339,7 +339,8 @@ automatically)."
     (sml-mode
      . ,(lambda (_interactive project)
           (list "millet-ls" (project-root project))))
-    ((blueprint-mode blueprint-ts-mode) . ("blueprint-compiler" "lsp")))
+    ((blueprint-mode blueprint-ts-mode) . ("blueprint-compiler" "lsp"))
+    ((odin-mode odin-ts-mode) . ("ols")))
   "How the command `eglot' guesses the server to start.
 An association list of (MAJOR-MODE . CONTACT) pairs.  MAJOR-MODE
 identifies the buffers that are to be managed by a specific