diff --git a/vim/plugin/tmux-navigator.vim b/vim/plugin/tmux-navigator.vim index 6e6c4ae..7cca355 100644 --- a/vim/plugin/tmux-navigator.vim +++ b/vim/plugin/tmux-navigator.vim @@ -45,6 +45,8 @@ function! s:TmuxSwitch(direction) elseif g:tmux_navigator_auto_resize if &filetype == 'netrw' || l:ori_ft == 'netrw' return + elseif &buftype == 'terminal' + return endif if a:direction =~ '[hl]' execute 'vertical resize ' . min([max([float2nr(&columns * 0.6), 80]), 140])