helix support rust

This commit is contained in:
Emile Clark-Boman 2026-01-20 09:18:27 +10:00
parent 51557ebd65
commit bde4819307

View file

@ -142,6 +142,16 @@
formatter.command = "${pkgs.ormolu}/bin/ormolu"; formatter.command = "${pkgs.ormolu}/bin/ormolu";
language-servers = ["haskell-language-server"]; language-servers = ["haskell-language-server"];
} }
{
name = "rust";
indent = {
tab-width = 2;
unit = " ";
};
auto-format = true;
formatter.command = "${pkgs.rustfmt}/bin/rustfmt";
language-servers = ["rust-analyzer"];
}
# { # {
# name = "c-sharp"; # name = "c-sharp";
# source = "source.cs"; # source = "source.cs";
@ -176,6 +186,10 @@
command = "${pkgs.haskell-language-server}/bin/haskell-language-server-wrapper"; command = "${pkgs.haskell-language-server}/bin/haskell-language-server-wrapper";
}; };
rust-analyzer = {
command = "${pkgs.rust-analyzer}/bin/rust-analyzer";
};
# C# language services # C# language services
OmniSharp = { OmniSharp = {
command = "${pkgs.omnisharp-roslyn}/bin/OmniSharp"; command = "${pkgs.omnisharp-roslyn}/bin/OmniSharp";