[Emacs] Run alejandra automatically
This commit is contained in:
parent
6b8789d566
commit
0aa212b83d
@ -2622,6 +2622,13 @@ eval-last-sexp.
|
||||
(shell-command-to-string "nix eval -I \"$NIX_PATH\" --expr '<nixpkgs>' --impure"))))
|
||||
:config
|
||||
(progn
|
||||
(use-package apheleia
|
||||
:demand t
|
||||
:config
|
||||
(progn
|
||||
(add-to-list 'apheleia-formatters '(alejandra . ("alejandra")))
|
||||
(setf (alist-get 'nix-mode apheleia-mode-alist)
|
||||
'(alejandra))))
|
||||
(setq nix-indent-function 'nix-indent-line)))
|
||||
|
||||
(use-package lsp-nix
|
||||
|
@ -57,6 +57,7 @@ makeEnable config "modules.code" true {
|
||||
# nix
|
||||
nixd
|
||||
nil
|
||||
alejandra
|
||||
] ++ (if pkgs.system == "x86_64-linux" then with pkgs; [
|
||||
# purescript
|
||||
purescript
|
||||
|
Loading…
Reference in New Issue
Block a user