2024-05-12 14:51:37 +05:30
|
|
|
{ pkgs, helix, ... }: {
|
2024-04-14 13:36:12 +05:30
|
|
|
programs.helix = {
|
|
|
|
enable = true;
|
2024-05-12 14:51:37 +05:30
|
|
|
package = helix.packages.${pkgs.system}.helix;
|
2024-04-14 13:36:12 +05:30
|
|
|
settings = {
|
|
|
|
theme = "dracula";
|
2024-04-14 14:03:52 +05:30
|
|
|
editor = {
|
|
|
|
line-number = "relative";
|
|
|
|
lsp.display-messages = true;
|
|
|
|
cursor-shape = {
|
|
|
|
insert = "bar";
|
|
|
|
select = "underline";
|
|
|
|
normal = "block";
|
|
|
|
};
|
|
|
|
};
|
2024-04-14 13:36:12 +05:30
|
|
|
};
|
2024-04-14 14:19:03 +05:30
|
|
|
languages = {
|
|
|
|
language-server = {
|
|
|
|
nixd = {
|
|
|
|
command = "${pkgs.nixd}/bin/nixd";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
language = [
|
|
|
|
{
|
|
|
|
name = "nix";
|
|
|
|
file-types = [ "nix" ];
|
|
|
|
roots = [ "flake.nix" ];
|
|
|
|
language-servers = [ "nixd" ];
|
|
|
|
formatter = {
|
|
|
|
command = "${pkgs.nixpkgs-fmt}/bin/nixpkgs-fmt";
|
|
|
|
};
|
|
|
|
auto-format = true;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-04-14 13:36:12 +05:30
|
|
|
};
|
|
|
|
}
|