plugins/tmux-navigator: add keymaps option

Enable users to more easily create keymaps for tmux-navigator's
directional motions.
This commit is contained in:
Matt Sturgeon 2024-03-17 15:44:44 +00:00
parent 4634c3781b
commit 94a452074f
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
2 changed files with 96 additions and 29 deletions

View file

@ -9,6 +9,8 @@
plugins.tmux-navigator = {
enable = true;
keymaps = [ ];
settings = {
save_on_switch = 2;
disable_when_zoomed = true;
@ -18,4 +20,35 @@
};
};
};
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;
};
};
}