emacs/eglot: Finally properly configure Nix LSP

This will auto-archive flake and make some more things nicer.
This commit is contained in:
Payas Relekar 2023-08-14 11:18:03 +05:30
parent dd9475c742
commit 12dde3a4b2

View file

@ -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