-
Notifications
You must be signed in to change notification settings - Fork 68
Description
Similar Issues
- Before filing, I have searched for similar issues.
Neovim Version
Good day!
I use AstroNvim, which is using smart-splits.nvim as default move split plug.
With tmux and vim I use christoomey/vim-tmux-navigator.
According smart-splits.nvim/README:
bind -n C-\\ if -F "#{@pane-is-vim}" 'send-keys C-\\\\' 'select-pane -l'smart-splits.nvim do not have previously function like: require('smart-splits').move_cursor_previously), witch may be sated as <C-\>.
*christoomey in the vim-tmux-navigator use tmux_last_pane with direction == 'p' as previous:
function! s:TmuxAwareNavigate(direction)
let nr = winnr()
let tmux_last_pane = (a:direction == 'p' && s:tmux_is_last_pane)
if !tmux_last_pane
call s:VimNavigate(a:direction)
. . .I think, many other using and smart-splits.nvim with nvim, and vim-tmux-navigator with vim, because vim using with ssh, crypto vim files, and ...
On other hand, is not right to use force: bind -n C-\\ 'select-pane -l', because vim-tmux-navigator is using smart navigation <C-\>:
- if last step is
vim split-- it's going to the vim last split; - if last step is
tmux split-- it's going to the tmux last split.
Multiplexer Integration
tmux
Multiplexer Version
tmux 3.4
Steps to Reproduce
- Create vertical split
- push <C->
- Nothing.
Expected Behavior
Navigate previously direction according to tmux_last_pane and nvim_last_pane
Actual Behavior
Do nothing.
Minimal Configuration to Reproduce
Additional Details and/or Screenshots
No response