mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 06:18:03 +03:00
33 lines
835 B
Nix
33 lines
835 B
Nix
{ ... }:
|
|
{
|
|
flake.homeModules.home-nushell-keybinds =
|
|
{ ... }:
|
|
{
|
|
programs.nushell.extraConfig = ''
|
|
$env.config.keybindings ++= [
|
|
{
|
|
name: jj_status
|
|
modifier: control
|
|
keycode: char_g
|
|
mode: [ emacs vi_insert vi_normal ]
|
|
event: { send: executehostcommand, cmd: "jj status" }
|
|
}
|
|
{
|
|
name: jj_log
|
|
modifier: alt
|
|
keycode: char_l
|
|
mode: [ emacs vi_insert vi_normal ]
|
|
event: { send: executehostcommand, cmd: "jj log" }
|
|
}
|
|
{
|
|
name: jj_diff
|
|
modifier: alt
|
|
keycode: char_d
|
|
mode: [ emacs vi_insert vi_normal ]
|
|
event: { send: executehostcommand, cmd: "jj diff" }
|
|
}
|
|
]
|
|
'';
|
|
};
|
|
}
|