do editor fuckery
This commit is contained in:
parent
bd60655fcc
commit
458a56ab4d
8 changed files with 283 additions and 226 deletions
41
modules/editors/helix/binds.nix
Normal file
41
modules/editors/helix/binds.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.helix.settings.keys = {
|
||||
normal = {
|
||||
space."=" = ":fmt";
|
||||
space.ret = "@[<space>]<space>";
|
||||
space.space = "ms<space>";
|
||||
|
||||
# smart tab++
|
||||
tab = "move_parent_node_end";
|
||||
S-tab = "move_parent_node_start";
|
||||
A-S = "@S[\\s]+<ret>";
|
||||
"'" = {
|
||||
D = "@<C-w>sgd";
|
||||
F = "@<C-w>sgy";
|
||||
d = "@<C-w>vgd";
|
||||
f = "@<C-w>vgy";
|
||||
h = ":toggle-option lsp.display-inlay-hints";
|
||||
t = ":pipe flip-bool";
|
||||
};
|
||||
};
|
||||
insert = {
|
||||
up = "no_op";
|
||||
down = "no_op";
|
||||
left = "no_op";
|
||||
right = "no_op";
|
||||
pageup = "no_op";
|
||||
pagedown = "no_op";
|
||||
home = "no_op";
|
||||
end = "no_op";
|
||||
|
||||
# smart tab ++
|
||||
S-tab = "move_parent_node_start";
|
||||
};
|
||||
select = {
|
||||
# smart tab++
|
||||
tab = "extend_parent_node_end";
|
||||
S-tab = "extend_parent_node_start";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue