feat(helix): install and configure helix editor as default

This commit is contained in:
Khaïs COLIN 2025-05-24 00:12:52 +02:00
parent 6ae1df1d44
commit 082851fa80
Signed by: logistic-bot
SSH key fingerprint: SHA256:3zI3/tx0ZpCLHCLPmEaGR4oeYCPMCzQxXhXutBmtOAU

View file

@ -1,6 +1,7 @@
{ {
pkgs, pkgs,
pkgs-unstable, pkgs-unstable,
lib,
nixvim, nixvim,
river-shifttags, river-shifttags,
other-transcode, other-transcode,
@ -107,6 +108,9 @@ in {
alsa-utils alsa-utils
# remote # remote
rustdesk rustdesk
# other lsps
nixd
nil
]; ];
file = { file = {
@ -118,7 +122,7 @@ in {
}; };
sessionVariables = { sessionVariables = {
EDITOR = "nvim"; EDITOR = "hx";
}; };
inherit username; inherit username;
@ -135,8 +139,6 @@ in {
userName = "Khaïs COLIN"; userName = "Khaïs COLIN";
# better diffs # better diffs
diff-so-fancy.enable = true; diff-so-fancy.enable = true;
# set editor
extraConfig.core.editor = "nvim";
# always show diff in commits # always show diff in commits
extraConfig.commit.verbose = true; extraConfig.commit.verbose = true;
}; };
@ -156,7 +158,7 @@ in {
key = "/home/khais/.ssh/id_ed25519.pub"; key = "/home/khais/.ssh/id_ed25519.pub";
}; };
ui = { ui = {
editor = "emacsclient -a ''"; editor = "hx";
default-command = "log"; default-command = "log";
movement.edit = true; movement.edit = true;
# do not page if output fits on one screen # do not page if output fits on one screen
@ -200,8 +202,8 @@ in {
gd = "git diff"; gd = "git diff";
gds = "git diff --staged"; gds = "git diff --staged";
vim = "nvim"; vim = "hx";
vi = "nvim"; vi = "hx";
# progress cp # progress cp
# https://serverfault.com/questions/43014/copying-a-large-directory-tree-locally-cp-or-rsync # https://serverfault.com/questions/43014/copying-a-large-directory-tree-locally-cp-or-rsync
@ -219,8 +221,8 @@ in {
programs.fish = { programs.fish = {
enable = true; enable = true;
shellAliases = { shellAliases = {
vim = "nvim"; vim = "hx";
vi = "nvim"; vi = "hx";
# progress cp # progress cp
# https://serverfault.com/questions/43014/copying-a-large-directory-tree-locally-cp-or-rsync # https://serverfault.com/questions/43014/copying-a-large-directory-tree-locally-cp-or-rsync
@ -396,4 +398,20 @@ in {
enable = true; enable = true;
extraConfig = builtins.readFile ./afew.config; extraConfig = builtins.readFile ./afew.config;
}; };
programs.helix = {
enable = true;
ignores = [".jj/"];
settings = {
theme = lib.mkForce "modus_vivendi";
editor = {
cursor-shape = {
insert = "bar";
normal = "block";
select = "underline";
};
end-of-line-diagnostics = "hint";
};
};
};
} }