docs: flypy - user customized words, fix typos

This commit is contained in:
Ryan Yin
2025-09-01 13:02:30 +08:00
parent 123d90a8dd
commit da1e7253da
3 changed files with 18 additions and 7 deletions

View File

@@ -134,14 +134,15 @@ in
enable = true;
settings = {
write = true; # Automatically fix typos
configPath = "./.typos.toml"; # relative to the flake root
configPath = ".typos.toml"; # relative to the flake root
exclude = "rime-data/";
};
};
prettier = {
enable = true;
settings = {
write = true; # Automatically format files
configPath = "./.prettierrc.yaml"; # relative to the flake root
configPath = ".prettierrc.yaml"; # relative to the flake root
};
};
# deadnix.enable = true; # detect unused variable bindings in `*.nix`
@@ -173,9 +174,7 @@ in
nodePackages.prettier
];
name = "dots";
shellHook = ''
${self.checks.${system}.pre-commit-check.shellHook}
'';
inherit (self.checks.${system}.pre-commit-check) shellHook;
};
}
);