aserowy / tmux.nvim

tmux integration for nvim features pane movement and resizing from within nvim.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stopped working across nvim to nvim in tmux pane split

oblitum opened this issue · comments

If I split tmux window in two panes side by side and run nvim on each split, the mappings won't move from one split to another, it only works in:

  • nvim window to nvim window
  • nvim window to tmux pane
  • tmux pane to nvim window
  • tmux pane to tmux pane

It not working in:

  • nvim window in tmux pane to nvim window in another tmux pane

I'm not sure whether it used to work, I suspect it did because I've been using it for quite a while and only noticed this problem lately.

Heho,

ty for the heads up. Ill look into it asap.

Kind regards

I believe that I am also experiencing this issue:

+-----+-----+
|     |     |
|  1  |  2  |
|_____|_____|

I can move from pane 1 to pane 2, but not pane 2 to pane 1. It appears that this line is preventing the navigation:

if pane_index == number_of_panes then
return false
end

heho,

i reverted the pr for #24 and implemented a hack. Can you please test, if everything is working as expected now? (Because i cannot reproduce the behaviour on my end)

Ty and kind regards
Alexander

@aserowy thx, this fixed it for me.

I'm unable to navigate left. Up, down, and right work.

Navigating right at the right border does jump me to the left vim pane, though.

nvim 0.9
latest commit for this repo