2024-02-08 12:04:15 -05:00
|
|
|
{ pkgs, lib, ... }:
|
2023-05-25 12:43:26 -04:00
|
|
|
{
|
|
|
|
programs.helix.languages = {
|
|
|
|
language = with pkgs; [
|
|
|
|
{
|
|
|
|
name = "nix";
|
|
|
|
auto-format = true;
|
|
|
|
formatter = {
|
|
|
|
command = lib.getExe alejandra;
|
2024-02-08 12:04:15 -05:00
|
|
|
args = [ "-q" ];
|
2023-05-25 12:43:26 -04:00
|
|
|
};
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "rust";
|
|
|
|
auto-format = true;
|
|
|
|
formatter = {
|
|
|
|
command = lib.getExe rustfmt;
|
|
|
|
};
|
|
|
|
}
|
2024-01-26 08:05:25 -05:00
|
|
|
{
|
|
|
|
name = "lua";
|
|
|
|
auto-format = true;
|
|
|
|
formatter = {
|
2024-02-01 15:48:47 -05:00
|
|
|
command = lib.getExe stylua;
|
2024-01-26 08:05:25 -05:00
|
|
|
};
|
|
|
|
}
|
2023-05-25 12:43:26 -04:00
|
|
|
];
|
|
|
|
language-server = with pkgs; {
|
|
|
|
nil = {
|
|
|
|
command = lib.getExe nil;
|
|
|
|
};
|
|
|
|
vscode-css-language-server = {
|
|
|
|
command = "${nodePackages.vscode-css-languageserver-bin}/bin/css-languageserver";
|
2024-02-08 12:04:15 -05:00
|
|
|
args = [ "--stdio" ];
|
2023-05-25 12:43:26 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|