treefmt: fix statix fmt
This commit is contained in:
parent
b973fda862
commit
8f97b01e8b
@ -3,10 +3,11 @@
|
|||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
emacsPkg = (if (pkgs.system == "x86_64-linux") then
|
emacsPkg =
|
||||||
pkgs.emacs-pgtk
|
if (pkgs.system == "x86_64-linux") then
|
||||||
else
|
pkgs.emacs-pgtk
|
||||||
pkgs.emacs);
|
else
|
||||||
|
pkgs.emacs;
|
||||||
in
|
in
|
||||||
emacsWithPackagesFromUsePackage {
|
emacsWithPackagesFromUsePackage {
|
||||||
config = ../configs/emacs.org;
|
config = ../configs/emacs.org;
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
[formatter.statix]
|
[formatter.statix]
|
||||||
command = "statix"
|
#command = "statix"
|
||||||
options = ["check"]
|
#options = ["check"]
|
||||||
|
command = "sh"
|
||||||
|
options = ["-euc", "for file in \"$@\"; do statix check \"$file\"; done"]
|
||||||
|
includes = [ "*.nix" ]
|
||||||
priority = 1
|
priority = 1
|
||||||
|
|
||||||
[formatter.deadnix]
|
[formatter.deadnix]
|
||||||
|
Loading…
Reference in New Issue
Block a user