From 0dfbf1652245317a6dce3c91dde19a00079ee353 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Mon, 2 Sep 2024 21:58:18 +0200 Subject: [PATCH] pinwheel: Use `nixd` in `emacs` --- hosts/pinwheel/modules/emacs/config.org | 3 +++ hosts/pinwheel/modules/emacs/default.nix | 1 + 2 files changed, 4 insertions(+) diff --git a/hosts/pinwheel/modules/emacs/config.org b/hosts/pinwheel/modules/emacs/config.org index 0fde334..d3c1536 100644 --- a/hosts/pinwheel/modules/emacs/config.org +++ b/hosts/pinwheel/modules/emacs/config.org @@ -507,6 +507,9 @@ Setup prefix for keybindings. '(scala-mode . ("metals" :initializationOptions (:isHttpEnabled t)))) + (add-to-list 'eglot-server-programs + '(nix-mode . ("nixd"))) + (setq-default eglot-workspace-configuration '( :metals ( diff --git a/hosts/pinwheel/modules/emacs/default.nix b/hosts/pinwheel/modules/emacs/default.nix index ff0ab4b..09d2de5 100644 --- a/hosts/pinwheel/modules/emacs/default.nix +++ b/hosts/pinwheel/modules/emacs/default.nix @@ -51,6 +51,7 @@ in emacs pkgs.wl-clipboard pkgs.emacs-lsp-booster + pkgs.nixd ]; };