christoomey / vim-tmux-navigator

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

Is it possible to use same keybindings for neovim splits and tmux panes navigation #357

Closed noahxzhu closed 11 months ago

noahxzhu commented 11 months ago

I want to use C-h,i,j,k to navigate between tmux panes, neovim splits and tmux <-> neovim, is this possible?

noahxzhu commented 11 months ago

Just found that there's a problem with the "is_vim" check on macOS is_vim="ps -o state= -o comm= -t '#{pane_tty}' \ | grep -iqE '^[^TXZ ]+ +(\S+\/)?g?(view|l?n?vim?x?)(diff)?$'"

ps: /dev/tty#{pane_tty} and /dev/#{pane_tty}: No such file or directory

noahxzhu commented 11 months ago

Looks like a tmux issue, I created several panes and opened Neovim, all #{pane_current_command}s are zsh, not nvim, not tmux.

noahxzhu commented 11 months ago

It's a conflict from Fig, I uninstalled Fig, vim-tmux-navigator works goood.