From 77f0e138a92849af6c5d63afa8e3d01a10fbf8bc Mon Sep 17 00:00:00 2001 From: Ethan Reece Date: Thu, 10 Jul 2025 00:05:47 -0500 Subject: [PATCH] Fix harper-ls --- .envrc | 2 +- languages/en-us.nix | 18 ++++++++++-------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.envrc b/.envrc index 32c5313..fee6256 100644 --- a/.envrc +++ b/.envrc @@ -1,3 +1,3 @@ -use flake watch_file ./home watch_file ./languages +use flake diff --git a/languages/en-us.nix b/languages/en-us.nix index c89753d..fc8a6fa 100644 --- a/languages/en-us.nix +++ b/languages/en-us.nix @@ -14,24 +14,26 @@ let file = builtins.toFile valeDictionary.filename valeDictionary.content; }; typosConfig = { - default.extendWords = - # dictionary: - builtins.listToAttrs ( - builtins.map (x: { - name = x; - value = x; - }) dictionary - ); + default.extendWords = builtins.listToAttrs ( + builtins.map (x: { + name = x; + value = x; + }) dictionary + ); }; typosConfigFile = tomlFormatter.generate "_typos.toml" typosConfig; in { helix.language-server = { + # https://ltex-plus.github.io/ltex-plus/supported-languages.html ltex-ls-plus = { command = "${pkgs.ltex-ls-plus}/bin/ltex-ls-plus"; config.ltex.dictionary.en-US = dictionary; }; + # https://vale.sh/docs/formats/code vale-ls.command = "${pkgs.vale-ls}/bin/vale-ls"; + # https://writewithharper.com/docs/integrations/language-server#Supported-Languages + harper-ls.command = "${pkgs.harper}/bin/harper-ls"; }; treefmt.programs.typos = { enable = true;