Files
nix-config-ryan4yin/.typos.toml
T
2026-11-11 13:42:14 +08:00

76 lines
2.0 KiB
TOML

[files]
# Respect .ignore files.
ignore-dot = true
# Respect ignore files.
ignore-files = true
# 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/",
# small-duck flypy user dictionary: entries are pinyin codes ("delt", "juli"),
# not English words, so the spell checker flags every one of them
"home/base/gui/rime/flypy_user.txt",
]
[default]
# Check binary files as text.
binary = false
# Verify spelling in file names.
check-filename = true
# ignore some special identifiers(sha256, mac address, crypto keys, etc)
extend-ignore-re = [
"iterm2",
"iHgEIBYKACAWIQSizQe9ljFEyyclWmtVhZllwnQrSwUCZZ1T9wIdAAAKCRBVhZll", # crypto keys
"noice", # noice.nvim
"crypted-nixos",
"daed",
# catppuccin theme colors
"11111b",
"1e1e2e",
"313244",
"414356",
"45475a",
"585b70",
"89b4fa",
"94e2d5",
"a6adc8",
"a6e3a1",
"bac2de",
"cdd6f4",
"f38ba8",
"f5c2e7",
"f5e0dc",
"f9e2af",
"fab387",
# The upstream dictionary maps UPnP to "UOnP", which is wrong; keep UPnP.
"UPnP",
# nftables keyword `iif` (input interface); the spell checker wants `if`.
"iif",
# Steam content-server group names (tyo3 = Tokyo, sgp1 = Singapore, hkg1 = Hong
# Kong), not English words.
"tyo3",
# nixos-facter is the upstream hardware-report tool; the dictionary wants "factor".
"facter",
# wluma's ambient-light-sensor key (`als`, `als.iio`, `aop-sensors-als`); the
# checker wants `also`, and the pre-commit hook rewrites it.
"als",
"ALS",
# ROCm's `HSA_OVERRIDE_GFX_VERSION` (Heterogeneous System Architecture); the
# dictionary wants "HAS".
"HSA",
# OpenPGP/GnuPG's `fpr` record and `FPR` for fingerprint; the checker wants
# "for"/"far"/"fps".
"fpr",
"FPR",
]