basic pi stuff, ugly but functional
This commit is contained in:
82
treefmt.nix
Normal file
82
treefmt.nix
Normal file
@@ -0,0 +1,82 @@
|
||||
{
|
||||
projectRootFile = "flake.nix";
|
||||
|
||||
programs = {
|
||||
actionlint.enable = true;
|
||||
biome = {
|
||||
enable = true;
|
||||
settings.formatter.formatWithErrors = true;
|
||||
};
|
||||
clang-format.enable = true;
|
||||
deadnix = {
|
||||
enable = true;
|
||||
};
|
||||
deno = {
|
||||
enable = true;
|
||||
# Using biome for these
|
||||
excludes = [
|
||||
"*.ts"
|
||||
"*.js"
|
||||
"*.json"
|
||||
"*.jsonc"
|
||||
];
|
||||
};
|
||||
fantomas.enable = true;
|
||||
fish_indent.enable = true;
|
||||
gofmt.enable = true;
|
||||
isort.enable = true;
|
||||
nixfmt.enable = true;
|
||||
nufmt.enable = true;
|
||||
ruff-check.enable = true;
|
||||
ruff-format.enable = true;
|
||||
rustfmt.enable = true;
|
||||
shfmt = {
|
||||
enable = true;
|
||||
indent_size = 4;
|
||||
};
|
||||
statix.enable = true;
|
||||
stylua.enable = true;
|
||||
taplo.enable = true;
|
||||
yamlfmt.enable = true;
|
||||
};
|
||||
|
||||
settings = {
|
||||
global.excludes = [
|
||||
"*.editorconfig"
|
||||
"*.envrc"
|
||||
"*.gitconfig"
|
||||
"*.git-blame-ignore-revs"
|
||||
"*.gitignore"
|
||||
"*.gitattributes"
|
||||
"*.luacheckrc"
|
||||
"*CODEOWNERS"
|
||||
"*LICENSE"
|
||||
"*flake.lock"
|
||||
"*.conf"
|
||||
"*.gif"
|
||||
"*.ico"
|
||||
"*.ini"
|
||||
"*.micro"
|
||||
"*.png"
|
||||
"*.svg"
|
||||
"*.tmux"
|
||||
"*/config"
|
||||
# TODO: formatters?
|
||||
"*.ac"
|
||||
"*.css" # Exclude CSS files from formatting since we use Nix template variables
|
||||
"*.csproj"
|
||||
"*.fsproj"
|
||||
"*.in"
|
||||
"*.kdl"
|
||||
"*.kvconfig"
|
||||
"*.rasi"
|
||||
"*.sln"
|
||||
"*.xml"
|
||||
"*.zsh"
|
||||
"*Makefile"
|
||||
"*makefile"
|
||||
];
|
||||
|
||||
formatter.ruff-format.options = [ "--isolated" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user