Closed RnYi closed 2 years ago
That’s correct: NeoVim supports custom actions to handle clicks on the tabline, so under NeoVim Buftabline can install a handler that responds to tabline clicks by switching buffers.
Vim only allows clicks on the tabline to trigger one particular behaviour: switching tab pages (i.e. the Vim feature a Buftabline user doesn’t care about and doesn’t use). So all Buftabline can do under Vim is to just disable clicking on the tabline completely.
I have made various attempts to use Vim’s behaviour against it, so to speak, to make clicks on the tabline cause buffer switching with some very indirect tricks – but nothing ever worked out. There were always very obvious cases where it didn’t work that I couldn’t figure out how to fix.
If Vim ever adds functionality that allows Buftabline to implement proper mouse support, rest assured I’ll be adding support for it to the plugin immediately.
It can be clicked in nvim, but not in vim?