configuration.nix/home/programs/helix.nix

37 lines
775 B
Nix
Raw Permalink Normal View History

2024-05-12 15:33:58 +05:30
{ pkgs, ... }: {
2024-04-14 13:36:12 +05:30
programs.helix = {
enable = true;
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
};
}