36 lines
775 B
Nix
36 lines
775 B
Nix
{ pkgs, ... }: {
|
|
programs.helix = {
|
|
enable = true;
|
|
settings = {
|
|
theme = "dracula";
|
|
editor = {
|
|
line-number = "relative";
|
|
lsp.display-messages = true;
|
|
cursor-shape = {
|
|
insert = "bar";
|
|
select = "underline";
|
|
normal = "block";
|
|
};
|
|
};
|
|
};
|
|
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;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|