Include vim-tmux-navigator to support hotkey switching between nvim and tmux panes

This commit is contained in:
Daniel McKnight 2025-05-16 17:52:32 -07:00
parent 8c71f6e703
commit 74a36ba246
4 changed files with 28 additions and 2 deletions

View file

@ -6,7 +6,7 @@ set -g prefix C-space
bind-key C-space send-prefix
# Shortcut to custom hints
bind-key -n C-h run-shell "tmux popup -xC -yC -w50% -h75% 'cat ~/.tmux/hints'"
bind h run-shell "tmux popup -xC -yC -w50% -h75% 'cat ~/.tmux/hints'"
# Shortcut to sync panes
bind C-x setw synchronize-panes
@ -77,5 +77,13 @@ set -g @resurrect-processes 'ssh nano k9s'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @open-S 'https://search.brave.com/search?q='
# Integrate with nvim navigation
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @vim_navigator_mapping_left "C-Left C-h"
set -g @vim_navigator_mapping_right "C-Right C-l"
set -g @vim_navigator_mapping_up "C-Up C-k"
set -g @vim_navigator_mapping_down "C-Down C-j"
# Load Plugins
run '~/.tmux/plugins/tpm/tpm'