mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-11 06:10:24 +01:00
docs: flypy - user customized words, fix typos
This commit is contained in:
13
.typos.toml
13
.typos.toml
@@ -1,10 +1,21 @@
|
||||
[files]
|
||||
# Respect .ignore files.
|
||||
ignore-dot = true
|
||||
# Respect ignore files.
|
||||
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]
|
||||
# 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",
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
@@ -21,7 +21,8 @@ ryan4yin@linux.com mail
|
||||
https://thiscute.world blog
|
||||
|
||||
# [自定义]常用符号
|
||||
## 小鹤内置常用符号快捷键: https://xgr313l2jy.k.topthink.com/@xhrm/fh.html
|
||||
## 小鹤内置:希腊大写 ofxd 希腊小写 ofxx
|
||||
## https://en.wikipedia.org/wiki/Greek_alphabet
|
||||
α alpa
|
||||
β beta
|
||||
γ gama
|
||||
|
||||
Reference in New Issue
Block a user