emacs: Configure formatter for nil

This commit is contained in:
Erwin Boskma 2023-05-23 11:09:55 +02:00
parent 52d23eb368
commit 7491646130
Signed by: erwin
SSH key fingerprint: SHA256:3F6Cm6I3erRqlBwEghZWAQl6eS5WrGTX1Vs/Evec1lQ
2 changed files with 10 additions and 0 deletions

View file

@ -1371,6 +1371,15 @@ 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.
#+begin_src emacs-lisp
(with-eval-after-load 'eglot
(add-to-list 'eglot-server-programs
'(nix-mode . ("nil" :initializationOptions
`(:nil (:formatting (:command ("nixpkgs-fmt"))))))))
#+end_src
*** Common Lisp *** Common Lisp
Common Lisp does not use =lsp-mode=, but has it's own environment: [[https://github.com/slime/slime][SLIME]] or Superior Lisp Interaction Mode for Emacs. Common Lisp does not use =lsp-mode=, but has it's own environment: [[https://github.com/slime/slime][SLIME]] or Superior Lisp Interaction Mode for Emacs.

View file

@ -79,6 +79,7 @@ in
nodePackages.bash-language-server nodePackages.bash-language-server
aspell aspell
nil nil
nixpkgs-fmt
python3 python3
lldb lldb
] ++ ] ++