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 ./home
watch_file ./languages watch_file ./languages
use flake

View file

@ -14,24 +14,26 @@ let
file = builtins.toFile valeDictionary.filename valeDictionary.content; file = builtins.toFile valeDictionary.filename valeDictionary.content;
}; };
typosConfig = { typosConfig = {
default.extendWords = default.extendWords = builtins.listToAttrs (
# dictionary: builtins.map (x: {
builtins.listToAttrs ( name = x;
builtins.map (x: { value = x;
name = x; }) dictionary
value = x; );
}) dictionary
);
}; };
typosConfigFile = tomlFormatter.generate "_typos.toml" typosConfig; typosConfigFile = tomlFormatter.generate "_typos.toml" typosConfig;
in in
{ {
helix.language-server = { helix.language-server = {
# https://ltex-plus.github.io/ltex-plus/supported-languages.html
ltex-ls-plus = { ltex-ls-plus = {
command = "${pkgs.ltex-ls-plus}/bin/ltex-ls-plus"; command = "${pkgs.ltex-ls-plus}/bin/ltex-ls-plus";
config.ltex.dictionary.en-US = dictionary; config.ltex.dictionary.en-US = dictionary;
}; };
# https://vale.sh/docs/formats/code
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
harper-ls.command = "${pkgs.harper}/bin/harper-ls";
}; };
treefmt.programs.typos = { treefmt.programs.typos = {
enable = true; enable = true;