From e5143c2000d21493d1b2024afc6530a199d46d1c Mon Sep 17 00:00:00 2001 From: Christoph Hollizeck Date: Fri, 31 Oct 2025 12:01:21 +0100 Subject: [PATCH] helix: add grammar check --- modules/base/system/helix.nix | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/modules/base/system/helix.nix b/modules/base/system/helix.nix index 1d801b1..370613d 100644 --- a/modules/base/system/helix.nix +++ b/modules/base/system/helix.nix @@ -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; + }; + }; + }; }; }; };