nix/hosts/nxs/modules/home-manager/tmux.nix

90 lines
1.8 KiB
Nix

{ config, pkgs, ... }:
{
programs.zellij = {
enable = true;
# if you want shell completions:
enableBashIntegration = true;
enableZshIntegration = true;
enableFishIntegration = false; # or true if you use it
settings = {
keybinds.normal = {
bind = [
{
key = "Ctrl+a";
action = {
SwitchToMode = "command";
};
}
{
key = "|";
action = {
NewPane = "Right";
};
}
{
key = "_";
action = {
NewPane = "Down";
};
}
{
key = "Ctrl+h";
action = {
GoToTab = "Prev";
};
}
{
key = "Ctrl+l";
action = {
GoToTab = "Next";
};
}
{
key = "z";
action = {
ToggleFocusFullscreen = null;
};
}
{
key = "m";
action = {
SetOption = {
name = "mouse_mode";
value = "true";
};
};
}
{
key = "M";
action = {
SetOption = {
name = "mouse_mode";
value = "false";
};
};
}
];
};
disable_ui = true;
mouse_mode = true;
pane_frames = false;
simplified_ui = true;
default_layout = "compact";
copy_clipboard = "primary";
scrollback_editor = "vi";
plugin = {
search = true;
session_manager = true;
strider = true;
filepicker = true;
};
};
};
}