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

@@ -1,10 +1,21 @@
[files] [files]
# Respect .ignore files.
ignore-dot = true ignore-dot = true
# Respect ignore files.
ignore-files = true ignore-files = true
extend-exclude = ["themes/", "data/", "static-surprises/", "resources/"] # Typos-specific ignore globs (gitignore syntax).
# NOTE: This setting is ignored when you pass the path directly on the command line, as cachix/git-hooks.nix does.
# To ignore those files, you must also exclude those directories via git-hooks.hooks.typos.settings.exclude.
extend-exclude = [
"data/",
"rime-data/",
]
[default] [default]
# Check binary files as text.
binary = false binary = false
# Verify spelling in file names.
check-filename = true
# ignore some special identifiers(sha256, mac address, crypto keys, etc) # ignore some special identifiers(sha256, mac address, crypto keys, etc)
extend-ignore-re = [ extend-ignore-re = [
"iterm2", "iterm2",

View File

@@ -134,14 +134,15 @@ in
enable = true; enable = true;
settings = { settings = {
write = true; # Automatically fix typos 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 = { prettier = {
enable = true; enable = true;
settings = { settings = {
write = true; # Automatically format files 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` # deadnix.enable = true; # detect unused variable bindings in `*.nix`
@@ -173,9 +174,7 @@ in
nodePackages.prettier nodePackages.prettier
]; ];
name = "dots"; name = "dots";
shellHook = '' inherit (self.checks.${system}.pre-commit-check) shellHook;
${self.checks.${system}.pre-commit-check.shellHook}
'';
}; };
} }
); );

View File

@@ -21,7 +21,8 @@ ryan4yin@linux.com mail
https://thiscute.world blog https://thiscute.world blog
# [自定义]常用符号 # [自定义]常用符号
## 小鹤内置常用符号快捷键: https://xgr313l2jy.k.topthink.com/@xhrm/fh.html ## 小鹤内置:希腊大写 ofxd 希腊小写 ofxx
## https://en.wikipedia.org/wiki/Greek_alphabet
α alpa α alpa
β beta β beta
γ gama γ gama