use typos to check typos

This commit is contained in:
ulic-youthlic 2025-05-25 14:04:21 +08:00
parent 8d9f566ce6
commit f3de1c79e4
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
7 changed files with 44 additions and 22 deletions

18
.helix/languages.toml Normal file
View file

@ -0,0 +1,18 @@
[[language]]
name = "nix"
language-servers = ["nixd", "typos-lsp"]
[[language]]
name = "markdown"
language-servers = ["marksman", "markdown-oxide", "typos-lsp"]
[[language]]
name = "toml"
language-servers = ["taplo", "typos-lsp"]
[[language]]
name = "git-ignore"
language-servers = ["typos-lsp"]
[language-server.typos-lsp]
command = "typos-lsp"

21
.typos.toml Normal file
View file

@ -0,0 +1,21 @@
[files]
ignore-global = true
ignore-parent = true
ignore-hidden = false
ignore-files = true
ignore-vcs = true
extend-exclude = ["secrets/", ".git/", "public-key.txt"]
[default]
check-filename = true
check-file = true
unicode = true
extend-ignore-re = [
# Line ignore with trailling `(#|//) spellchecker: disable-line`
"(?Rm)^.*(#|//)\\s*spellchecker: disable-line$",
# Line block with `# spellchecker: <on|off>`
"(?s)(#|//)\\s*spellchecker: off.*?\\n\\s*(#|//)\\s*spellchecker: on",
]
extend-ignore-identifiers-re = ["als", "Paket", "ConfiguratioN", "StructurE"]
[default.extend-identifiers]

View file

@ -1,18 +0,0 @@
words = [
"akun",
"configuratio",
"fuzzel",
"gdm",
"ghostty",
"kde",
"niri",
"nixo",
"nixos",
"nixpkgs",
"ovelrays",
"pkgs",
"sddm",
"specialisation",
"structur",
"tytonidae",
]

View file

@ -180,6 +180,7 @@
packages = with pkgs; [
nixd
typos
typos-lsp
just
nvfetcher
];

View file

@ -21,7 +21,7 @@ in {
example = pkgs.wluam;
default = pkgs.wluma;
description = ''
pakcage of wluma
package of wluma
'';
};
};

View file

@ -50,7 +50,7 @@ in {
description = ''
A file which JSON configurations for juicity client. See the {option}`settings` option for more information.
Note: this file will override {options}`settings` option, which is recommanded.
Note: this file will override {options}`settings` option, which is recommended.
'';
};
allowedOpenFirewallPorts = lib.mkOption {
@ -95,7 +95,7 @@ in {
description = ''
A file which JSON configurations for juicity server. See the {option}`settings` option for more information.
Note: this file will override {options}`settings` option, which is recommanded.
Note: this file will override {options}`settings` option, which is recommended.
'';
};
allowedOpenFirewallPorts = lib.mkOption {

View file

@ -11,7 +11,7 @@
src = grammar.src;
# sourceRoot = "source";
dontConfigue = true;
dontConfigure = true;
FLAGS = [
"-Isrc"