helix: add more keybinds, add underline

This commit is contained in:
Charlie Root 2024-11-03 15:30:05 +01:00
commit 6cc4364fea
Signed by: faukah
SSH key fingerprint: SHA256:jpYIt4Vkz1NBTQcks/N9OPTfTFxE6KF2W/rV7hrfrIw

View file

@ -55,10 +55,14 @@ in {
mouse = true; mouse = true;
bufferline = "multiple"; bufferline = "multiple";
soft-wrap.enable = true; soft-wrap.enable = true;
cursor-shape = {insert = "bar";}; cursor-shape = {
insert = "bar";
normal = "block";
select = "underline";
};
statusline = { statusline = {
left = ["spinner" "version-control" "diagnostics" "file-name"]; left = ["spinner" "version-control" "diagnostics" "file-name"];
right = ["file-base-name" "file-type" "selections" "position" "file-encoding"]; right = ["file-base-name" "file-type" "position" "file-encoding"];
}; };
gutters.layout = ["diff" "diagnostics" "line-numbers" "spacer"]; gutters.layout = ["diff" "diagnostics" "line-numbers" "spacer"];
inline-diagnostics = { inline-diagnostics = {
@ -66,13 +70,22 @@ in {
other-lines = "error"; other-lines = "error";
}; };
}; };
keys.normal = { keys = {
normal = {
space.g = [":new" ":insert-output ${getExe pkgs.lazygit}" ":buffer-close!" ":redraw"]; space.g = [":new" ":insert-output ${getExe pkgs.lazygit}" ":buffer-close!" ":redraw"];
esc = ["collapse_selection" "keep_primary_selection" "normal_mode"]; esc = ["collapse_selection" "keep_primary_selection" "normal_mode"];
A-H = "goto_previous_buffer"; A-H = "goto_previous_buffer";
A-L = "goto_next_buffer"; A-L = "goto_next_buffer";
A-w = ":buffer-close"; A-w = ":buffer-close";
A-f = ":format"; A-f = ":format";
A-r = ":reload";
A-x = "extend_to_line_bounds";
X = ["extend_line_up" "extend_to_line_bounds"];
};
select = {
A-x = "extend_to_line_bounds";
X = ["extend_line_up" "extend_to_line_bounds"];
};
}; };
}; };
}; };