Subject: [PATCH] Add sml-mode entry to 'eglot-server-programs'
From: Philip Kaludercic <[email-masked]>
To: [email-masked]
Date: Tue, 13 Feb 2024 09:40:56 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

There is a new LSP server for Standard ML; it's not complete yet, it
appears to work without any issues when I built it from source:

From c044db0dc8cc95fd7c28011515bf80e3319dabf4 Mon Sep 17 00:00:00 2001
From: Philip Kaludercic <[email-masked]>
Date: Tue, 13 Feb 2024 10:38:48 +0100
Subject: [PATCH] Add sml-mode entry to 'eglot-server-programs'

* lisp/progmodes/eglot.el (eglot-server-programs): Use the
"millet" LSP server (https://github.com/azdavis/millet).
---
 lisp/progmodes/eglot.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index 2f32a8e6eda..f341428cac3 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -310,7 +310,10 @@ eglot-server-programs
                                        ("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
-- 
2.43.0