emacs: Configure formatter for nil
This commit is contained in:
parent
52d23eb368
commit
7491646130
2 changed files with 10 additions and 0 deletions
|
@ -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.
|
||||||
|
|
|
@ -79,6 +79,7 @@ in
|
||||||
nodePackages.bash-language-server
|
nodePackages.bash-language-server
|
||||||
aspell
|
aspell
|
||||||
nil
|
nil
|
||||||
|
nixpkgs-fmt
|
||||||
python3
|
python3
|
||||||
lldb
|
lldb
|
||||||
] ++
|
] ++
|
||||||
|
|
Loading…
Reference in a new issue