Add spell checking of Nix files
This commit is contained in:
parent
ae0242fc24
commit
f0a687ff2b
4 changed files with 8 additions and 2 deletions
|
@ -266,11 +266,13 @@ in
|
||||||
"cSpell.customDictionaries" = {
|
"cSpell.customDictionaries" = {
|
||||||
custom = { path = ./words.txt; };
|
custom = { path = ./words.txt; };
|
||||||
custom-css = { path = ./words-css.txt; };
|
custom-css = { path = ./words-css.txt; };
|
||||||
|
custom-nix = { path = ./words-nix.txt; };
|
||||||
custom-rust = { path = ./words-rust.txt; };
|
custom-rust = { path = ./words-rust.txt; };
|
||||||
custom-shellscript = { path = ./words-shellscript.txt; };
|
custom-shellscript = { path = ./words-shellscript.txt; };
|
||||||
};
|
};
|
||||||
"cSpell.languageSettings" = [
|
"cSpell.languageSettings" = [
|
||||||
{ languageId = "css"; dictionaries = [ "custom-css" ]; }
|
{ languageId = "css"; dictionaries = [ "custom-css" ]; }
|
||||||
|
{ languageId = "nix"; dictionaries = [ "custom-nix" ]; }
|
||||||
{ languageId = "rust"; dictionaries = [ "custom-rust" ]; }
|
{ languageId = "rust"; dictionaries = [ "custom-rust" ]; }
|
||||||
{ languageId = "shellscript"; dictionaries = [ "custom-shellscript" ]; }
|
{ languageId = "shellscript"; dictionaries = [ "custom-shellscript" ]; }
|
||||||
];
|
];
|
||||||
|
|
4
common/words-nix.txt
Normal file
4
common/words-nix.txt
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
builtins
|
||||||
|
pkgs
|
||||||
|
pname
|
||||||
|
stdenv
|
|
@ -74,7 +74,7 @@ in
|
||||||
home.file.".cspell.json".text = lib.mkForce (builtins.toJSON {
|
home.file.".cspell.json".text = lib.mkForce (builtins.toJSON {
|
||||||
dictionaries = [ "custom" ];
|
dictionaries = [ "custom" ];
|
||||||
dictionaryDefinitions = [ { name = "custom"; path = wordsPath; } ];
|
dictionaryDefinitions = [ { name = "custom"; path = wordsPath; } ];
|
||||||
enableFiletypes = [ "haml" "ruby" "shellscript" ];
|
enableFiletypes = [ "haml" "nix" "ruby" "shellscript" ];
|
||||||
});
|
});
|
||||||
|
|
||||||
# Environment
|
# Environment
|
||||||
|
|
|
@ -54,6 +54,6 @@ in
|
||||||
home.file.".cspell.json".text = lib.mkForce (builtins.toJSON {
|
home.file.".cspell.json".text = lib.mkForce (builtins.toJSON {
|
||||||
dictionaries = [ "custom" ];
|
dictionaries = [ "custom" ];
|
||||||
dictionaryDefinitions = [ { name = "custom"; path = wordsPath; } ];
|
dictionaryDefinitions = [ { name = "custom"; path = wordsPath; } ];
|
||||||
enableFiletypes = [ "haml" "ruby" "shellscript" ];
|
enableFiletypes = [ "haml" "nix" "ruby" "shellscript" ];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue