emacs: Switch to nixfmt-rfc-style for formatting nix files
This commit is contained in:
parent
10bf3510be
commit
16f0b79fd0
2 changed files with 3 additions and 3 deletions
|
@ -1514,13 +1514,13 @@ Add [[https://github.com/NixOS/nix-mode][nix-mode]]
|
||||||
:hook (nix-mode . eglot-ensure))
|
:hook (nix-mode . eglot-ensure))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
Tell =nil= to use =nixpkgs-fmt= for formatting nix files.
|
Tell =nil= to use =nixfmt= for formatting nix files.
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(with-eval-after-load 'eglot
|
(with-eval-after-load 'eglot
|
||||||
(add-to-list 'eglot-server-programs
|
(add-to-list 'eglot-server-programs
|
||||||
`(nix-mode . ("nil" :initializationOptions
|
`(nix-mode . ("nil" :initializationOptions
|
||||||
(:formatting (:command ["nixpkgs-fmt"]))))))
|
(:formatting (:command ["nixfmt"]))))))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** Common Lisp
|
*** Common Lisp
|
||||||
|
|
|
@ -195,7 +195,7 @@ in
|
||||||
aspell
|
aspell
|
||||||
lldb
|
lldb
|
||||||
(nil.overrideAttrs (_: { doCheck = false; }))
|
(nil.overrideAttrs (_: { doCheck = false; }))
|
||||||
nixpkgs-fmt
|
nixfmt-rfc-style
|
||||||
python3
|
python3
|
||||||
]
|
]
|
||||||
++ (with aspellDicts; [
|
++ (with aspellDicts; [
|
||||||
|
|
Loading…
Reference in a new issue