nix-community.nixvim/tests/test-sources/plugins/utils/tmux-navigator.nix

55 lines
906 B
Nix
Raw Normal View History

{
# Empty configuration
empty = {
plugins.tmux-navigator.enable = true;
};
2024-03-07 19:44:13 +01:00
# Activate all settings
defaults = {
plugins.tmux-navigator = {
enable = true;
keymaps = [ ];
settings = {
save_on_switch = 2;
disable_when_zoomed = true;
preserve_zoom = true;
no_wrap = true;
no_mappings = true;
};
};
};
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 = true;
};
};
}