]> git.eshelyaron.com Git - emacs.git/commitdiff
Add sml-mode entry to 'eglot-server-programs'
authorPhilip Kaludercic <philipk@posteo.net>
Tue, 13 Feb 2024 09:38:48 +0000 (10:38 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 28 Feb 2024 17:51:51 +0000 (18:51 +0100)
* lisp/progmodes/eglot.el (eglot-server-programs): Use the
"millet" LSP server (https://github.com/azdavis/millet).

(cherry picked from commit 477eb882b57b3defd43ea8dd9510cfdf5fd9ee79)

lisp/progmodes/eglot.el

index 8201ef53a7de04f564b1fc0e95ff18fcb43d239d..4947a6a7450fcc5977f1485323ee6bc37fa92552 100644 (file)
@@ -309,7 +309,10 @@ automatically)."
                                        ("vscode-markdown-language-server" "--stdio"))))
                                 (graphviz-dot-mode . ("dot-language-server" "--stdio"))
                                 (terraform-mode . ("terraform-ls" "serve"))
-                                ((uiua-ts-mode uiua-mode) . ("uiua" "lsp")))
+                                ((uiua-ts-mode uiua-mode) . ("uiua" "lsp"))
+                                (sml-mode
+                                 . ,(lambda (_interactive project)
+                                      (list "millet-ls" (project-root project)))))
   "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