mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-11 12:30:23 +01:00
fix: evaluation warning - 'system' has been renamed to/replaced by 'stdenv.hostPlatform.system' Signed-off-by: Ryan Yin <xiaoyin_c@qq.com>
45 lines
1003 B
Nix
45 lines
1003 B
Nix
{ pkgs, helix, ... }:
|
|
|
|
let
|
|
helixPackages = helix.packages.${pkgs.stdenv.hostPlatform.system};
|
|
in
|
|
{
|
|
home.packages = with pkgs; [
|
|
steel
|
|
];
|
|
|
|
programs.helix = {
|
|
enable = true;
|
|
# https://github.com/helix-editor/helix/pull/8675
|
|
package = helixPackages.default.overrideAttrs (prevAttrs: {
|
|
# enable steel as the plugin system
|
|
cargoBuildFeatures = prevAttrs.cargoBuildFeatures or [ ] ++ [ "steel" ];
|
|
});
|
|
settings = {
|
|
editor = {
|
|
line-number = "relative";
|
|
cursorline = true;
|
|
color-modes = true;
|
|
lsp.display-messages = true;
|
|
cursor-shape = {
|
|
insert = "bar";
|
|
normal = "block";
|
|
select = "underline";
|
|
};
|
|
indent-guides.render = true;
|
|
};
|
|
keys.normal = {
|
|
space = {
|
|
space = "file_picker";
|
|
w = ":w";
|
|
q = ":q";
|
|
};
|
|
esc = [
|
|
"collapse_selection"
|
|
"keep_primary_selection"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|