helix: add grammar check

This commit is contained in:
Christoph Hollizeck 2025-10-31 12:01:21 +01:00
parent 9398c7568e
commit e5143c2000
Signed by: Daholli
GPG key ID: 249300664F2AF2C7

View file

@ -19,7 +19,12 @@
};
homeManager.cholli =
{ inputs, pkgs, ... }:
{
inputs,
lib,
pkgs,
...
}:
let
helix-pkg = inputs.helix.packages.${pkgs.system}.default;
in
@ -107,14 +112,25 @@
language-servers = [
"nixd"
"nil"
"harper-ls"
];
}
{
# provided by the dev environment in the rust shell
# Provided by the dev environment in the rust shell
name = "rust";
auto-format = true;
formatter.command = "cargo fmt";
language-servers = [ "rust-analyzer" ];
language-servers = [
"rust-analyzer"
"harper-ls"
];
}
{
name = "zig";
language-servers = [
"zls"
"harper-ls"
];
}
];
@ -146,6 +162,15 @@
args = [ "--stdio" ];
config.provideFormatter = true;
};
harper-ls = {
command = "${lib.getExe pkgs.harper}";
args = [ "--stdio" ];
config = {
linters = {
long_sentences = false;
};
};
};
};
};
};