nix-community.nixvim/tests/test-sources/plugins/by-name/tmux-navigator/default.nix
2024-09-09 11:50:38 +01:00

54 lines
891 B
Nix

{
# Empty configuration
empty = {
plugins.tmux-navigator.enable = true;
};
# Activate all settings
defaults = {
plugins.tmux-navigator = {
enable = true;
keymaps = [ ];
settings = {
save_on_switch = 2;
disable_when_zoomed = 1;
preserve_zoom = 1;
no_wrap = 1;
no_mappings = 1;
};
};
};
with-keymap = {
plugins.tmux-navigator = {
enable = true;
keymaps = [
{
key = "<C-w>h";
action = "left";
}
{
key = "<C-w>j";
action = "down";
}
{
key = "<C-w>k";
action = "up";
}
{
key = "<C-w>l";
action = "right";
}
{
key = "<C-w>\\";
action = "previous";
}
];
settings.no_mappings = 1;
};
};
}