Add typos
This commit is contained in:
parent
d22323535c
commit
7d6a70ed2f
5 changed files with 9 additions and 1 deletions
|
@ -21,7 +21,7 @@ let
|
||||||
}) dictionary
|
}) dictionary
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
typosConfigFile = tomlFormatter.generate "_typos.toml" typosConfig;
|
typosConfigFile = tomlFormatter.generate "typos.toml" typosConfig;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
helix.language-server = {
|
helix.language-server = {
|
||||||
|
@ -34,6 +34,10 @@ in
|
||||||
vale-ls.command = "${pkgs.vale-ls}/bin/vale-ls";
|
vale-ls.command = "${pkgs.vale-ls}/bin/vale-ls";
|
||||||
# https://writewithharper.com/docs/integrations/language-server#Supported-Languages
|
# https://writewithharper.com/docs/integrations/language-server#Supported-Languages
|
||||||
harper-ls.command = "${pkgs.harper}/bin/harper-ls";
|
harper-ls.command = "${pkgs.harper}/bin/harper-ls";
|
||||||
|
typos = {
|
||||||
|
command = "${pkgs.typos-lsp}/bin/typos-lsp";
|
||||||
|
config.config = typosConfigFile.outPath;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
pre-commit = {
|
pre-commit = {
|
||||||
typos = {
|
typos = {
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
"marksman"
|
"marksman"
|
||||||
"ltex-ls-plus"
|
"ltex-ls-plus"
|
||||||
"vale-ls"
|
"vale-ls"
|
||||||
|
"typos"
|
||||||
];
|
];
|
||||||
formatter = {
|
formatter = {
|
||||||
command = "${treefmt}/bin/treefmt";
|
command = "${treefmt}/bin/treefmt";
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
language-servers = [
|
language-servers = [
|
||||||
"nil"
|
"nil"
|
||||||
"harper-ls"
|
"harper-ls"
|
||||||
|
"typos"
|
||||||
];
|
];
|
||||||
formatter = {
|
formatter = {
|
||||||
command = "${treefmt}/bin/treefmt";
|
command = "${treefmt}/bin/treefmt";
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
language-servers = [
|
language-servers = [
|
||||||
"taplo"
|
"taplo"
|
||||||
"harper-ls"
|
"harper-ls"
|
||||||
|
"typos"
|
||||||
];
|
];
|
||||||
formatter = {
|
formatter = {
|
||||||
command = "${treefmt}/bin/treefmt";
|
command = "${treefmt}/bin/treefmt";
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
language-servers = [
|
language-servers = [
|
||||||
"yaml-language-server"
|
"yaml-language-server"
|
||||||
"harper-ls"
|
"harper-ls"
|
||||||
|
"typos"
|
||||||
];
|
];
|
||||||
formatter = {
|
formatter = {
|
||||||
command = "${treefmt}/bin/treefmt";
|
command = "${treefmt}/bin/treefmt";
|
||||||
|
|
Loading…
Add table
Reference in a new issue