emacs/eglot: Finally properly configure Nix LSP
This will auto-archive flake and make some more things nicer.
This commit is contained in:
parent
dd9475c742
commit
12dde3a4b2
1 changed files with 7 additions and 1 deletions
|
@ -889,7 +889,13 @@ mu4e + mbsync + msmtp:
|
||||||
(setq! xref-show-xrefs-function #'consult-xref
|
(setq! xref-show-xrefs-function #'consult-xref
|
||||||
xref-show-definitions-function #'consult-xref
|
xref-show-definitions-function #'consult-xref
|
||||||
eglot-send-changes-idle-time 0.2
|
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
|
#+end_src
|
||||||
|
|
||||||
* Little things
|
* Little things
|
||||||
|
|
Reference in a new issue