editor/helix: add config for fsharp
Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
@ -66,13 +66,22 @@ in {
|
|||||||
markdown-oxide.command = getExe pkgs.markdown-oxide;
|
markdown-oxide.command = getExe pkgs.markdown-oxide;
|
||||||
# nil.command = getExe pkgs.nil;
|
# nil.command = getExe pkgs.nil;
|
||||||
nixd.command = getExe pkgs.nixd;
|
nixd.command = getExe pkgs.nixd;
|
||||||
pyright.command = getExe pkgs.pyright;
|
# pyright.command = getExe pkgs.pyright;
|
||||||
pyright.args = ["-"];
|
# pyright.args = ["-"];
|
||||||
ruff.command = getExe pkgs.ruff;
|
ruff.command = getExe pkgs.ruff;
|
||||||
ruff.args = ["server"];
|
ruff.args = ["server"];
|
||||||
# rust-analyzer.command = getExe pkgs.rust-analyzer;
|
# rust-analyzer.command = getExe pkgs.rust-analyzer;
|
||||||
# texlab.command = getExe pkgs.texlab;
|
# texlab.command = getExe pkgs.texlab;
|
||||||
tinymist.command = getExe pkgs.tinymist;
|
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 = [
|
language = [
|
||||||
{
|
{
|
||||||
@ -109,6 +118,14 @@ in {
|
|||||||
auto-format = true;
|
auto-format = true;
|
||||||
formatter.command = "${pkgs.clang-tools}/bin/clang-format";
|
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";
|
# name = "rust";
|
||||||
# auto-format = true;
|
# auto-format = true;
|
||||||
@ -121,12 +138,12 @@ in {
|
|||||||
language-servers = [
|
language-servers = [
|
||||||
{
|
{
|
||||||
name = "ruff";
|
name = "ruff";
|
||||||
only-features = ["format" "diagnostics"];
|
# only-features = ["format" "diagnostics"];
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "pyright";
|
|
||||||
except-features = ["format" "diagnostics"];
|
|
||||||
}
|
}
|
||||||
|
# {
|
||||||
|
# name = "pyright";
|
||||||
|
# except-features = ["format" "diagnostics"];
|
||||||
|
# }
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user