nixos/home-manager/modules/helix.nix

43 lines
1.0 KiB
Nix
Raw Permalink Normal View History

2024-02-25 20:44:04 +01:00
{ inputs, pkgs, ... }: {
programs.helix = {
enable = true;
settings = {
theme = "catppuccin_frappe";
editor = {
auto-pairs = false;
mouse = false;
line-number = "relative";
lsp.display-messages = true;
color-modes = true;
cursor-shape = {
normal = "block";
insert = "bar";
select = "underline";
};
statusline = {
left = [
"mode"
"file-modification-indicator"
"diagnostics"
"file-name"
"read-only-indicator"
];
center = [ "spinner" ];
right = [ "file-type" "separator" "position" "total-line-numbers" ];
mode = {
normal = "N";
insert = "I";
select = "V";
};
};
};
};
languages.language = [{
name = "nix";
auto-format = true;
2024-04-04 21:56:41 +02:00
formatter.command = "${pkgs.nixfmt-classic}/bin/nixfmt";
2024-02-25 20:44:04 +01:00
}];
extraPackages = [ pkgs.nil ];
};
}