christoomey / vim-tmux-navigator

Seamless navigation between tmux panes and vim splits
MIT License
5.07k stars 319 forks source link

TPM plugin seems to be broken #312

Closed schneiderfelipe closed 2 years ago

schneiderfelipe commented 2 years ago

The instructions here seem to fail. This is the last twelve or so lines in my ~/.config/tmux/tmux.conf:

# List of tpm plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# Vim/Neovim integration
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# tmux-continuum should be the last one in the plugin list
set -g @plugin 'tmux-plugins/tmux-continuum'

# Initialize tpm, the tmux plugin manager (keep this line at the very bottom)
run '~/.tmux/plugins/tpm/tpm'

But things seem not to work. Is this the proper way of configuring?

schanzel commented 2 years ago

Same here. Navigating from vim to tmux works, but navigating from a tmux pane to another one (vim or non-vim) doesn't. Looks like the vim-tmux-navigator key bindings aren't loaded. ctrl+l has the default behaviour of clearing the pane.

set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-copycat'
run -b '~/.tmux/plugins/tpm/tpm'
schneiderfelipe commented 2 years ago

@schanzel It looks like the culprits can be neither tmux-yank, tmux-copycat, tmux-resurrect nor tmux-continuum, as our lists of plugins loaded after vim-tmux-navigator contain only those ones, but share none of them. 🤔

schanzel commented 2 years ago

Good point, I reordered them to load vim-tmux-navigator last. It works.

schneiderfelipe commented 2 years ago

@schanzel In this case, I was very wrong. It worked for me as well. No incompatibility actually.