Skip to content

Commit

Permalink
Fix bim buffers navigation with Fig
Browse files Browse the repository at this point in the history
  • Loading branch information
artursmirnov authored Dec 2, 2022
1 parent c2dab18 commit 5b35679
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions plugin/tmux_navigator.vim
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,21 @@ function! s:TmuxAwareNavigate(direction)
let s:tmux_is_last_pane = 0
endif
endfunction

function! s:set_is_vim()
call s:TmuxCommand("set-option -p @is_vim yes")
endfunction

function! s:unset_is_vim()
call s:TmuxCommand("set-option -p -u @is_vim")
endfunction

augroup tmux_navigator_is_vim
au!
autocmd VimEnter * call s:set_is_vim()
autocmd VimLeave * call s:unset_is_vim()
if exists('##VimSuspend')
autocmd VimSuspend * call s:unset_is_vim()
autocmd VimResume * call s:set_is_vim()
endif
augroup END

0 comments on commit 5b35679

Please sign in to comment.