christoomey / vim-tmux-navigator

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

TmuxNavigateLeft is not working on my computer #327

Open yerkocodes opened 1 year ago

yerkocodes commented 1 year ago

Since I installed the tmux navigator plugin, the movement to the left is not working, all the others work correctly and I already verified that it is not collapsing with another mapping, so I have not found a solution.

I use NeoVim on Kali linux

┌──(user32㉿kali)-[~/.config/nvim]
└─$ nvim -v                    
NVIM v0.8.0-1210-gd367ed9b2
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by runner@fv-az505-656

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/share/nvim"

Run :checkhealth for more info

┌──(user32㉿kali)-[~/.config/nvim]
└─$ tmux -V   
tmux 3.3a

This is my repo of configs

Sorry but I'm not expert enough to see an obvious solution, I would appreciate some help 😉

christoomey commented 1 year ago

Hmm, hard to say based on the information provided, but since it's just moving to the left that doesn't work, my guess is it is a conflict in the key bindings. I know you mentioned that "I already verified that it is not collapsing with another mapping", but just to confirm, there are mappings at both the tmux and Vim level, and the conflict can occur at both levels.

Did you run through the steps in the troubleshooting guide by any chance? Specifically the note in this section. Likewise, can you check the output of tmux list-keys -T root | grep 'C-h' to confirm the tmux mapping is set as expected?

skbolton commented 1 year ago

I just helped a coworker get over this and the same solution might work for you. She had set up a new machine and realized that she hadn't cloned TPM and set up the tmux plugins on the new machine. This led to having the vim plugin installed which would send the right commands to move but in the tmux side of things the bingings weren't set up because the tpm plugin was missing.

If you run <prefix>I and you don't get the TPM refreshed display you know you are missing tpm and need to set that up.

hopezh commented 1 year ago

Hmm, hard to say based on the information provided, but since it's just moving to the left that doesn't work, my guess is it is a conflict in the key bindings. I know you mentioned that "I already verified that it is not collapsing with another mapping", but just to confirm, there are mappings at both the tmux and Vim level, and the conflict can occur at both levels.

Did you run through the steps in the troubleshooting guide by any chance? Specifically the note in this section. Likewise, can you check the output of tmux list-keys -T root | grep 'C-h' to confirm the tmux mapping is set as expected?

I also can't get vim-tmux-navigator's keymaps to work...

The output of tmux list-keys -T root | grep 'C-h' on my computer (Alacritty, Ubuntu installed via vmware on Windows 11) is the following:

bind-key    -T copy-mode-vi C-h                  select-pane -L
bind-key    -T root         C-h                  if-shell "ps -o state= -o comm= -t '#{pane_tty}'     | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|l?n?vim?x?)(diff)?$'" "send-keys C-h" "select-pane -L"

May ask if this is correct?