More updates for Zellij
This commit is contained in:
+82
-3
@@ -22,19 +22,98 @@
|
|||||||
enableZshIntegration = pkgs.stdenv.hostPlatform.isDarwin;
|
enableZshIntegration = pkgs.stdenv.hostPlatform.isDarwin;
|
||||||
settings = {
|
settings = {
|
||||||
default_shell = "xonsh";
|
default_shell = "xonsh";
|
||||||
|
plugins = {
|
||||||
|
autolock = {
|
||||||
|
_props.location = "https://github.com/fresh2dev/zellij-autolock/releases/download/0.2.2/zellij-autolock.wasm";
|
||||||
|
_children = [ {
|
||||||
|
is_enabled = true;
|
||||||
|
} {
|
||||||
|
triggers = "nvim|vim|git";
|
||||||
|
} {
|
||||||
|
reaction_seconds = "0.3";
|
||||||
|
} {
|
||||||
|
print_to_log = true;
|
||||||
|
} ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
load_plugins.autolock = {};
|
||||||
keybinds = {
|
keybinds = {
|
||||||
normal._children = [
|
normal._children = [
|
||||||
{
|
{
|
||||||
bind = {
|
bind = {
|
||||||
_args = [ "Ctrl b" ];
|
_args = [ "Enter" ];
|
||||||
|
_children = [ {
|
||||||
|
WriteChars = "\\u{000D}";
|
||||||
|
MessagePlugin = {
|
||||||
|
_args = [ "autolock" ];
|
||||||
|
_children = [{}];
|
||||||
|
};
|
||||||
|
} ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
bind = {
|
||||||
|
_args = [ "Ctrl z" ];
|
||||||
_children = [
|
_children = [
|
||||||
{
|
{
|
||||||
SwitchToMode._args = [ "locked" ];
|
MessagePlugin = {
|
||||||
|
_args = [ "autolock" ];
|
||||||
|
_children = [
|
||||||
|
{
|
||||||
|
payload._args = [ "enable" ];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
SwitchToMode._args = [ "Locked" ];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
]; # /normal
|
||||||
|
locked._children = [
|
||||||
|
{
|
||||||
|
bind = {
|
||||||
|
_args = [ "Ctrl z" ];
|
||||||
|
_children = [
|
||||||
|
{
|
||||||
|
MessagePlugin = {
|
||||||
|
_args = [ "autolock" ];
|
||||||
|
_children = [
|
||||||
|
{
|
||||||
|
payload._args = [ "disable" ];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
SwitchToMode._args = [ "Normal" ];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
]; # /locked
|
||||||
|
shared_except = {
|
||||||
|
_args = [ "locked" ];
|
||||||
|
_children = [ {
|
||||||
|
bind = {
|
||||||
|
_args = [ "Ctrl h" ];
|
||||||
|
MoveFocusOrTab._args = [ "Left" ];
|
||||||
|
};
|
||||||
|
} {
|
||||||
|
bind = {
|
||||||
|
_args = [ "Ctrl j" ];
|
||||||
|
MoveFocus._args = [ "Down" ];
|
||||||
|
};
|
||||||
|
} {
|
||||||
|
bind = {
|
||||||
|
_args = [ "Ctrl k" ];
|
||||||
|
MoveFocus._args = [ "Up" ];
|
||||||
|
};
|
||||||
|
} {
|
||||||
|
bind = {
|
||||||
|
_args = [ "Ctrl l" ];
|
||||||
|
MoveFocusOrTab._args = [ "Right" ];
|
||||||
|
};
|
||||||
|
} ];
|
||||||
|
}; # /shared_except
|
||||||
}; # /keybinds
|
}; # /keybinds
|
||||||
}; # /settings
|
}; # /settings
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -135,6 +135,7 @@
|
|||||||
notify.enable = true;
|
notify.enable = true;
|
||||||
remote-nvim.enable = true;
|
remote-nvim.enable = true;
|
||||||
web-devicons.enable = true;
|
web-devicons.enable = true;
|
||||||
|
zellij.enable = true;
|
||||||
};
|
};
|
||||||
userCommands = {
|
userCommands = {
|
||||||
Ggr = {
|
Ggr = {
|
||||||
|
|||||||
Reference in New Issue
Block a user