Include vim-tmux-navigator to support hotkey switching between nvim and tmux panes
This commit is contained in:
parent
8c71f6e703
commit
74a36ba246
4 changed files with 28 additions and 2 deletions
10
.tmux.conf
10
.tmux.conf
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue