Subject: [PATCH] eglot: Add nixd to eglot-server-programs
From: Brian Leung <[email-masked]>
To: [email-masked]
Cc: João Távora <[email-masked]>
Date: Thu, 22 Jun 2023 01:29:15 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Tags: patch

See attached.

In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, 
cairo
version 1.16.0, Xaw3d scroll bars)
Repository revision: 1b0348d95934a66d9991a7331ab55e1b9a6c1367
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 
11.0.12101008
System Description: NixOS 23.11 (Tapir)

Configured using:
 'configure
 --prefix=/nix/store/px9y6p648cy1h6hhw6s62kmrvvwhjs4m-emacs-git-20230617.0
 --disable-build-details --with-modules --with-x-toolkit=lucid
 --with-xft --with-cairo --with-native-compilation 
 --with-tree-sitter'
From ff6036d9c5455616fe988fcdaca9ca1ce607fa13 Mon Sep 17 00:00:00 2001
From: Brian Leung <[email-masked]>
Date: Wed, 21 Jun 2023 09:47:05 -0700
Subject: [PATCH] eglot: Add nixd to eglot-server-programs

* lisp/progmodes/eglot.el (eglot-server-programs): Add the nixd
language server for nix-mode.
---
 lisp/progmodes/eglot.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index 7d5d786dea3..72b3ac9206d 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -230,7 +230,7 @@ eglot-server-programs
                                  . ,(eglot-alternatives '("digestif" "texlab")))
                                 (erlang-mode . ("erlang_ls" "--transport" "stdio"))
                                 ((yaml-ts-mode yaml-mode) . ("yaml-language-server" "--stdio"))
-                                (nix-mode . ,(eglot-alternatives '("nil" "rnix-lsp")))
+                                (nix-mode . ,(eglot-alternatives '("nixd" "nil" "rnix-lsp")))
                                 (nickel-mode . ("nls"))
                                 (gdscript-mode . ("localhost" 6008))
                                 ((fortran-mode f90-mode) . ("fortls"))
-- 
2.40.1