Files
copnix/modules/home/nu/home-nushell-keybinds.ulu.nix
2026-08-23 18:03:02 +03:00

33 lines
831 B
Nix

{ ... }:
{
flake.homeModules.home-nushell-keybinds =
{ ... }:
{
programs.nushell.extraConfig = ''
$env.config.keybindings ++= [
{
name: jj_status
modifier: alt
keycode: char_s
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" }
}
]
'';
};
}