home/zellij: disable session_serialization to increase startup speed

This commit is contained in:
Guanran Wang 2024-03-01 00:44:14 +08:00
parent 32524d8f91
commit fc97e5dcf0
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -4,16 +4,22 @@
enableFishIntegration = true; enableFishIntegration = true;
}; };
# not sure how to write keybinds in nix (see line 16) # Unsure about the syntax for defining keybindings in Nix (refer to line 16)
xdg.configFile."zellij/config.kdl".text = lib.mkForce '' xdg.configFile."zellij/config.kdl".text = lib.mkForce ''
// TODO: Text selection is not displayed due to the use of the same color as
// my terminal background.
theme "tokyo-night-dark" theme "tokyo-night-dark"
simplified_ui true simplified_ui true
pane_frames false pane_frames false
default_layout "compact" // still learning the keybinds! default_layout "compact"
on_force_close "quit" on_force_close "quit"
mirror_session false mirror_session false
// WORKAROUND: This feature slows down startup speed, and I don't need it anyway.
// See: https://github.com/zellij-org/zellij/issues/1757#issuecomment-1962981641
session_serialization false
keybinds { keybinds {
normal { normal {
bind "Alt 1" { GoToTab 1; } bind "Alt 1" { GoToTab 1; }