mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-29 20:04:28 +02:00
plugins/tmux-navigator: add keymaps option
Enable users to more easily create keymaps for tmux-navigator's directional motions.
This commit is contained in:
parent
4634c3781b
commit
94a452074f
2 changed files with 96 additions and 29 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue