Subject: [PATCH] eglot: register uiua lsp server
From: skykanin <[email-masked]>
To: "[email-masked]" <[email-masked]>
Cc: João Távora <[email-masked]>
Date: Sat, 16 Dec 2023 15:16:38 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Uiua [1] is a stack based array programming language descendant from APL. It has a built in LSP server in the executable and so I've added a patch for registering it as an LSP server in eglot.

[1]: https://www.uiua.org/

From 40e96600dd98fcab38a38daf79fe5acbcecd247a Mon Sep 17 00:00:00 2001
From: skykanin <[email-masked]>
Date: Sat, 16 Dec 2023 16:08:57 +0100
Subject: [PATCH] add uiua language server

---
 eglot.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/eglot.el b/eglot.el
index 1e0bcd3..a33a5b9 100644
--- a/eglot.el
+++ b/eglot.el
@@ -254,7 +254,8 @@ chosen (interactively or automatically)."
                                  . ,(eglot-alternatives
                                      '(("marksman" "server")
                                        ("vscode-markdown-language-server" "--stdio"))))
-                                (graphviz-dot-mode . ("dot-language-server" "--stdio")))
+                                (graphviz-dot-mode . ("dot-language-server" "--stdio"))
+                                ((uiua-ts-mode uiua-mode) . ("uiua" "lsp")))
   "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.42.0