summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-09-08 19:35:37 +0200
committerAlan Pearce2023-09-08 19:35:37 +0200
commitfedce35bc1d2f35d8d95d983768015149e66facd (patch)
tree2fe86b0e788e056a04b40b70d25f2d56603e1ca3
parent53eca4cfe65bb0a4d96f24871575629399d6d569 (diff)
downloadnixfiles-fedce35bc1d2f35d8d95d983768015149e66facd.tar.lz
nixfiles-fedce35bc1d2f35d8d95d983768015149e66facd.tar.zst
nixfiles-fedce35bc1d2f35d8d95d983768015149e66facd.zip
emacs: auto-fetch nix flake inputs whilst editing
-rw-r--r--user/emacs/init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 97a954f2..cf0fbebd 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -1028,7 +1028,8 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
               (push 'flymake-eldoc-function eldoc-documentation-functions))
             (add-hook 'eglot-managed-mode-hook 'my/setup-eglot-eldoc)
             (setq-default eglot-workspace-configuration
-                          '(:yaml (:keyOrdering nil))
+                          '(:yaml (:keyOrdering nil)
+                                  :nix (:autoArchive t))
                           eglot-ignored-server-capabilities '(:documentHighlightProvider))))
 
 (use-package consult-eglot