1
0
Fork 0

Fix harper-ls

This commit is contained in:
Ethan Reece 2025-07-10 00:05:47 -05:00
parent 3646dbaaa7
commit 77f0e138a9
Signed by: me
GPG key ID: 198E9EB433DB1B28
2 changed files with 11 additions and 9 deletions

2
.envrc
View file

@ -1,3 +1,3 @@
use flake
watch_file ./home
watch_file ./languages
use flake

View file

@ -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;