nix-community.nixvim/tests/test-sources/plugins/utils/tmux-navigator.nix
Matt Sturgeon 94a452074f
plugins/tmux-navigator: add keymaps option
Enable users to more easily create keymaps for tmux-navigator's
directional motions.
2024-06-07 15:42:54 +01:00

54 lines
906 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 = 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;
};
};
}