blob: 791b5cde1c3328393e0346111604ee5a087d793e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
// Zellij configuration
// See: https://zellij.dev/documentation/options
// Gruvbox dark theme (built-in)
theme "gruvbox-dark"
// Session resurrection: serialize layout, panes, and running commands to disk.
// Exited sessions can be listed and resurrected from the session-manager.
// session_serialization is already true by default, but we also want viewport.
serialize_pane_viewport true
// Scrollback: open in $EDITOR with Ctrl-s → e
scroll_buffer_size 50000
// Clipboard: copy to system clipboard on selection
copy_on_select true
// Clipboard is handled via OSC 52 (terminal-native, no external tools needed)
// Auto-attach to existing session with the same name instead of erroring
attach_to_session true
// Seamless navigation between neovim splits and zellij panes (Ctrl h/j/k/l).
// Requires smart-splits.nvim on the neovim side.
keybinds {
shared_except "locked" {
bind "Ctrl h" {
MessagePlugin "https://github.com/hiasr/vim-zellij-navigator/releases/download/0.2.1/vim-zellij-navigator.wasm" {
name "move_focus";
payload "left";
};
}
bind "Ctrl j" {
MessagePlugin "https://github.com/hiasr/vim-zellij-navigator/releases/download/0.2.1/vim-zellij-navigator.wasm" {
name "move_focus";
payload "down";
};
}
bind "Ctrl k" {
MessagePlugin "https://github.com/hiasr/vim-zellij-navigator/releases/download/0.2.1/vim-zellij-navigator.wasm" {
name "move_focus";
payload "up";
};
}
bind "Ctrl l" {
MessagePlugin "https://github.com/hiasr/vim-zellij-navigator/releases/download/0.2.1/vim-zellij-navigator.wasm" {
name "move_focus";
payload "right";
};
}
}
}
|