t9md / vim-choosewin

Land on window you chose like tmux's 'display-pane'
568 stars 42 forks source link

window label on statusline each window method no longer works with Neovim global statusline" feature #59

Open stephane-klein opened 2 years ago

stephane-klein commented 2 years ago

Hello,

I use Neovim, since I use "global statusline" feature (enabled with laststatus = 3), I can't see anymore the window label on statusline each window.

Now, I have to necessarily to enable choosewin_overlay_enable option.

I'm not sure how this plugin should behave when global statusline feature is enabled :thinking:

Best regards, Stéphane

stephane-klein commented 2 years ago

cc @t9md

Vssblt commented 2 years ago

Unfortunately. This plug looks like no longer maintained. The author's last reply was two years ago. Maybe you should fork out this project and fix it by yourself. :)

hexh250786313 commented 2 years ago

Try this

function ChooseWinShowingStatusLine()
  let current = &laststatus
  set laststatus=2
  ChooseWin
  exec 'set laststatus=' . current
endfunction

nnoremap <space>ww <cmd>call ChooseWinShowingStatusLine()<CR>