Fix harper-ls
This commit is contained in:
parent
3646dbaaa7
commit
77f0e138a9
2 changed files with 11 additions and 9 deletions
2
.envrc
2
.envrc
|
@ -1,3 +1,3 @@
|
|||
use flake
|
||||
watch_file ./home
|
||||
watch_file ./languages
|
||||
use flake
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue