christoomey / vim-tmux-navigator

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

Nvim isn't detected #342

Closed JakeTompkins closed 1 year ago

JakeTompkins commented 1 year ago

OS: Macos 13.1 (22C65) Nvim Version: NVIM v0.8.3 Tmux Version: 3.3A

Process List : Ss+ zsh (figterm)

tmux.conf:

set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-sidebar'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'jimeh/tmux-themepack'

set -g @themepack 'powerline/default/cyan'

set -g default-terminal "screen-256color"
set -sa terminal-overrides ',alacritty:RGB'

set -g prefix C-a
unbind C-b
bind-key C-a send-prefix

unbind %
bind | split-window -h

unbind '"'
bind - split-window -v

unbind r
bind r source-file ~/.tmux.conf

bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
bind -r h resize-pane -L 5

bind -r m resize-pane -Z

run -b '~/.tmux/plugins/tpm/tpm'

I've checked and double checked my nvim keymappings and there's nothing overriding those set by the plugin. If I run the TmuxNavigator commands directly inside of nvim they behave as expected, but when I press <C-[hjlk]> inside of nvim, the only behavior that functions properly is switching between Tmux panes and back to nvim. When I try to switch nvim windows I get no response.

I use Alacritty and recently was playing with some of the window settings, so I thought that might be the problem. I switched to the Mac terminal and gave it a try but had the same results. The strange thing is that when I first installed the plugin yesterday it was working fine, but today it doesn't seem to be able to detect nvim at all. Let me know what more I can do to help troubleshoot if nothing in tmux.conf jumps out at you.

JakeTompkins commented 1 year ago

Just noticed this is a dup of the top issue. My apologies