editor/helix: add config for fsharp

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-05-08 12:30:00 +03:00
parent 487a413bca
commit 4e2702dfd1

View File

@ -66,13 +66,22 @@ in {
markdown-oxide.command = getExe pkgs.markdown-oxide;
# nil.command = getExe pkgs.nil;
nixd.command = getExe pkgs.nixd;
pyright.command = getExe pkgs.pyright;
pyright.args = ["-"];
# pyright.command = getExe pkgs.pyright;
# pyright.args = ["-"];
ruff.command = getExe pkgs.ruff;
ruff.args = ["server"];
# rust-analyzer.command = getExe pkgs.rust-analyzer;
# texlab.command = getExe pkgs.texlab;
tinymist.command = getExe pkgs.tinymist;
fsac.command = getExe pkgs.fsautocomplete;
fsac.config = {
# editor.formatOnSave = true;
AutomaticWorkspaceInit = true;
FSharp.ExternalAutocomplete = true;
FSharp.linting.fsharplint.enabled = true;
FSharp.linting.fsharplint.configFile = "fsharplint.json";
FSharp.formatting.fantomas.enabled = true;
};
};
language = [
{
@ -109,6 +118,14 @@ in {
auto-format = true;
formatter.command = "${pkgs.clang-tools}/bin/clang-format";
}
{
name = "fsharp";
auto-format = true;
# formatter.command = getExe pkgs.fantomas;
language-servers = ["fsac"];
scope = "source.fs";
roots = ["fsproj" "sln" ".git"];
}
# {
# name = "rust";
# auto-format = true;
@ -121,12 +138,12 @@ in {
language-servers = [
{
name = "ruff";
only-features = ["format" "diagnostics"];
}
{
name = "pyright";
except-features = ["format" "diagnostics"];
# only-features = ["format" "diagnostics"];
}
# {
# name = "pyright";
# except-features = ["format" "diagnostics"];
# }
];
}
];