mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-05-19 13:06:52 +02:00
feat: update helix keymaps
This commit is contained in:
@@ -11,6 +11,8 @@
|
|||||||
color-modes = true;
|
color-modes = true;
|
||||||
scrolloff = 8;
|
scrolloff = 8;
|
||||||
|
|
||||||
|
# use system clipboard by default
|
||||||
|
default-yank-register = "+";
|
||||||
# Wrap long lines to the viewport (word-wrap style; does not insert hard line endings)
|
# Wrap long lines to the viewport (word-wrap style; does not insert hard line endings)
|
||||||
soft-wrap = {
|
soft-wrap = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -96,11 +98,23 @@
|
|||||||
indent-guides.render = true;
|
indent-guides.render = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# home/base/tui/zellij/config.kdl: Ctrl+o opens Zellij Session, so Helix never receives the
|
keys.normal = {
|
||||||
# default Ctrl+o (jump_backward). One remap restores backward jumplist; forward stays Ctrl+i.
|
space.space = ":reload-all";
|
||||||
# Other Zellij binds (Ctrl+s scroll, Ctrl+p pane, …): use built-in Space menu, :w / :rla, or
|
esc = [
|
||||||
# Zellij locked mode — https://zellij.dev/tutorials/colliding-keybindings/
|
"collapse_selection"
|
||||||
keys.normal."C-S-o" = "jump_backward";
|
"keep_primary_selection"
|
||||||
|
];
|
||||||
|
space.w = ":w";
|
||||||
|
space.q = ":q";
|
||||||
|
|
||||||
|
# useful vim keybindings
|
||||||
|
"$" = "goto_line_end";
|
||||||
|
"0" = "goto_line_start";
|
||||||
|
|
||||||
|
# Ctrl+o opens Zellij Session
|
||||||
|
"C-S-o" = "jump_backward";
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user