helix: add more keybinds, add underline
This commit is contained in:
parent
64ac7e7f92
commit
6cc4364fea
1 changed files with 22 additions and 9 deletions
|
@ -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"];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue