chore: add treefmt
This commit is contained in:
parent
9d58b073f3
commit
2700d47c01
2 changed files with 21 additions and 1 deletions
|
@ -237,10 +237,17 @@
|
|||
devShells = {
|
||||
default = pkgs.mkShell {
|
||||
name = defaultPackageName;
|
||||
packages = [ defaultPackage ] ++ (with pkgs; [ lua-language-server ]);
|
||||
packages =
|
||||
[ defaultPackage ]
|
||||
++ (with pkgs; [
|
||||
lua-language-server
|
||||
nixfmt-rfc-style
|
||||
stylua
|
||||
]);
|
||||
};
|
||||
};
|
||||
|
||||
formatter = pkgs.treefmt;
|
||||
}
|
||||
)
|
||||
// {
|
||||
|
|
13
treefmt.toml
Normal file
13
treefmt.toml
Normal file
|
@ -0,0 +1,13 @@
|
|||
excludes = ["flake.lock", ".gitignore", "README.md"]
|
||||
|
||||
[formatter.stylua]
|
||||
command = "stylua"
|
||||
excludes = []
|
||||
includes = ["*.lua"]
|
||||
options = []
|
||||
|
||||
[formatter.nixfmt-rfc-style]
|
||||
command = "nixfmt"
|
||||
excludes = []
|
||||
includes = ["*.nix"]
|
||||
options = []
|
Loading…
Reference in a new issue