itchyny / lightline.vim

A light and configurable statusline/tabline plugin for Vim
MIT License
6.76k stars 315 forks source link

Incompatibility with taboo.vim and can't fully disable tabline #337

Closed bedax closed 5 years ago

bedax commented 5 years ago

I usually have various tabs open at one time that are usually renamed with :TabooRename from taboo.vim.

lightline doesn't seem to like taboo.vim as when taboo is installed lightline's tabline doesn't activate at startup, so I never noticed lightline had a tabline feature. That is until I used :Goyo then :Goyo!, then lightline#link gets called, the tabline activates, and it then messes up all the tabs. I assume it does this because of its misinteraction with taboo but I'm not sure.

Either way, to stop lightline from messing up the tabs I disabled the tabline feature using the normal method, but it doesn't seem to fully work, as now when I repeat the goyo thing, it doesn't enable anymore, it just mixes up the tabs without enabling the tabline feature.

I'm not sure if the two misinteractions mentioned are with taboo or lightline, if it's with lightline it would be nice if it was fixed, but the main issue here is the inability to fully disable lightline's tabline feature.

Thanks a lot for lightline though, besides this small point it's excellent.

itchyny commented 5 years ago

To disable tabline of lightline, try the following configuration.

let g:lightline = {
      \ 'enable': { 'tabline': 0 },
      \ }
bedax commented 5 years ago

Hi @itchyny, thanks for the reply. I tried disabling the tabline with that method and it didn't work, the problem still remains as described above.

itchyny commented 5 years ago

It should disable the tabline of lightline, please reconfirm that :echo g:lightline.enable.tabline should print 0.