From 12dde3a4b2ef7a5040cabb325c2f5c722dc79ced Mon Sep 17 00:00:00 2001 From: Payas Relekar Date: Mon, 14 Aug 2023 11:18:03 +0530 Subject: [PATCH] emacs/eglot: Finally properly configure Nix LSP This will auto-archive flake and make some more things nicer. --- hosts/hermes/doom/config.org | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hosts/hermes/doom/config.org b/hosts/hermes/doom/config.org index a519f44..0d10eba 100644 --- a/hosts/hermes/doom/config.org +++ b/hosts/hermes/doom/config.org @@ -889,7 +889,13 @@ mu4e + mbsync + msmtp: (setq! xref-show-xrefs-function #'consult-xref xref-show-definitions-function #'consult-xref eglot-send-changes-idle-time 0.2 - eglot-extend-to-xref t)) + eglot-extend-to-xref t) + + (setq-default eglot-workspace-configuration + '(:nil (:formatting (:command ["nixpkgs-fmt"]) + :nix (:flake (:autoArchive t + :autoEvalInputs t + :nixpkgsInputName "nixpkgs")))))) #+end_src * Little things