Add language server for Odin
authorEllis Kenyo <me@elken.dev>
Tue, 7 Jan 2025 15:43:58 +0000 (15:43 +0000)
committerStefan Kangas <stefankangas@gmail.com>
Tue, 7 Jan 2025 19:09:12 +0000 (20:09 +0100)
* lisp/progmodes/eglot.el (eglot-server-programs): Add language server
for the Odin programming language.  (Bug#75421)

Copyright-paperwork-exempt: yes

lisp/progmodes/eglot.el

index 5a7b14fcb17ce0460f8871c148a79d0708d22f5c..02bb844b54ef009485f865e49c039afb5431d602 100644 (file)
@@ -341,7 +341,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