Skip to content

Commit

Permalink
treewide: install taplo
Browse files Browse the repository at this point in the history
  • Loading branch information
tomodachi94 committed May 20, 2024
1 parent 6157d32 commit a37a513
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
1 change: 1 addition & 0 deletions lib/shells.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
let
treefmt-deps = with pkgs; [
treefmt
taplo
stylua
statix
deadnix
Expand Down
2 changes: 1 addition & 1 deletion lib/tooling-config/selene.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
std="lua51+vim"
std = "lua51+vim"
exclude = ["*/.direnv/*"]
[lints]
mixed_table = "allow"
4 changes: 1 addition & 3 deletions lib/tooling-config/statix.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
disabled = [
"repeated_keys"
]
disabled = ["repeated_keys"]
24 changes: 16 additions & 8 deletions lib/tooling-config/treefmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,35 @@

[formatter.stylua]
command = "stylua"
options = [ "--config-path", "lib/tooling-config/stylua.toml" ]
includes = [ "*.lua" ]
options = ["--config-path", "lib/tooling-config/stylua.toml"]
includes = ["*.lua"]
excludes = []

[formatter.statix]
command = "sh"
options = ["-euc", "for file in \"$@\"; do statix fix --config lib/tooling-config/statix.toml \"$file\"; done"]
includes = [ "*.nix" ]
options = [
"-euc",
"for file in \"$@\"; do statix fix --config lib/tooling-config/statix.toml \"$file\"; done",
]
includes = ["*.nix"]

[formatter.deadnix]
command = "deadnix"
includes = [ "*.nix" ]
includes = ["*.nix"]

[formatter.nixpkgs-fmt]
command = "nixpkgs-fmt"
includes = [ "*.nix" ]
includes = ["*.nix"]

[formatter.taplo]
command = "taplo"
options = ["format"]
includes = ["*.toml"]

[formatter.mdformat]
command = "mdformat"
includes = [ "*.md" ]
includes = ["*.md"]

[formatter.yamlfmt]
command = "yamlfmt"
includes = [ "*.yaml", "*.yml" ]
includes = ["*.yaml", "*.yml"]

0 comments on commit a37a513

Please sign in to comment.