mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 05:18:12 +09:00
59 lines
1.8 KiB
Nix
59 lines
1.8 KiB
Nix
{...}: {
|
|
programs.zellij = {
|
|
enable = true;
|
|
|
|
enableZshIntegration = false;
|
|
|
|
settings = {
|
|
pane_frames = true;
|
|
default_mode = "locked";
|
|
};
|
|
|
|
extraConfig = ''
|
|
keybinds {
|
|
locked {
|
|
bind "Ctrl g" { SwitchToMode "normal"; }
|
|
bind "Alt h" "Alt Left" { MoveFocusOrTab "Left"; }
|
|
bind "Alt j" "Alt Down" { MoveFocus "Down"; }
|
|
bind "Alt k" "Alt Up" { MoveFocus "Up"; }
|
|
bind "Alt l" "Alt Right" { MoveFocusOrTab "Right"; }
|
|
bind "Alt n" { NewPane; }
|
|
bind "Alt H" "Alt S-Left" { Resize "Increase Left"; }
|
|
bind "Alt J" "Alt S-Down" { Resize "Increase Down"; }
|
|
bind "Alt K" "Alt S-Up" { Resize "Increase Up"; }
|
|
bind "Alt L" "Alt S-Right" { Resize "Increase Right"; }
|
|
}
|
|
normal {
|
|
bind "Alt h" "Alt Left" { MoveFocusOrTab "Left"; }
|
|
bind "Alt j" "Alt Down" { MoveFocus "Down"; }
|
|
bind "Alt k" "Alt Up" { MoveFocus "Up"; }
|
|
bind "Alt l" "Alt Right" { MoveFocusOrTab "Right"; }
|
|
bind "Alt n" { NewPane; }
|
|
bind "Alt H" "Alt S-Left" { Resize "Increase Left"; }
|
|
bind "Alt J" "Alt S-Down" { Resize "Increase Down"; }
|
|
bind "Alt K" "Alt S-Up" { Resize "Increase Up"; }
|
|
bind "Alt L" "Alt S-Right" { Resize "Increase Right"; }
|
|
}
|
|
}
|
|
'';
|
|
|
|
layouts.dev = ''
|
|
layout {
|
|
pane split_direction="vertical" {
|
|
pane {
|
|
pane command="nvim"
|
|
pane stacked=true size="30%" {
|
|
pane expanded=true
|
|
pane
|
|
}
|
|
}
|
|
|
|
pane size=1 borderless=true {
|
|
plugin location="zellij:compact-bar"
|
|
}
|
|
}
|
|
}
|
|
'';
|
|
};
|
|
}
|