Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only the current buffer is visible #20

Closed
nghialm269 opened this issue May 10, 2019 · 14 comments
Closed

Only the current buffer is visible #20

nghialm269 opened this issue May 10, 2019 · 14 comments
Labels

Comments

@nghialm269
Copy link

Hi,

I just installed vim-buffet in neovim using vim-plug, after restarting neovim, the tabline appear, but it only showed with the active buffer only, not any other buffers.

I tested in vim 8.1 and it showed fine.

I'm using neovim 0.3.5.

Please tell me if I need to provide any more information, thanks.

@bagrat bagrat added the bug label May 28, 2019
@bagrat
Copy link
Owner

bagrat commented May 28, 2019

@mnrce thanks for creating this issue and providing all the info. I'll be able to have a look into this in a week and will keep updating this issue.

@bagrat
Copy link
Owner

bagrat commented Jun 26, 2019

@mnrce I have just tested with neovim v0.3.7 and it works fine. Can you please try upgrading neovim and see if the issue continues to appear?

@nghialm269
Copy link
Author

I've just tested with neovim v0.3.7 and v0.4.0-1119-g8c7e41f59 and still had the same issue:

image
You can see that :ls show two buffers but the tabline only show one.

@bagrat
Copy link
Owner

bagrat commented Jun 26, 2019

Thanks for posting the screenshot @mnrce. I think the problem is with another plugin. Are you using airline for statusline?

@nghialm269
Copy link
Author

Thanks for posting the screenshot @mnrce. I think the problem is with another plugin. Are you using airline for statusline?

I'm using lightline for statusline.

@bagrat
Copy link
Owner

bagrat commented Jun 26, 2019

@mnrce figured it out. So you probably have the Lightline Tabline enabled by default. The reason you see just one buffer, is that the Lightline Tabline actually shows the tabs and not buffers, and the tab just shows the current active buffer. All you need to do is just disable the Lightline Tabline, should be something like this:

let g:lightline.enable.tabline = 0

Please confirm that it worked for you, or let me know otherwise and let's continue investigating.

@nghialm269
Copy link
Author

@mnrce figured it out. So you probably have the Lightline Tabline enabled by default. The reason you see just one buffer, is that the Lightline Tabline actually shows the tabs and not buffers, and the tab just shows the current active buffer. All you need to do is just disable the Lightline Tabline, should be something like this:

let g:lightline.enable.tabline = 0

Please confirm that it worked for you, or let me know otherwise and let's continue investigating.

It works now, thank you. I didn't know lightline has tabline, and for some reason it worked in vim but not neovim, so I didn't think lightline was the reason.

@bagrat
Copy link
Owner

bagrat commented Jun 26, 2019

I am glad it worked for you @mnrce!

@EdgarOrtegaRamirez @nifoc could you please check if this works for you as well?

@bagrat bagrat added question and removed bug labels Jun 26, 2019
@bagrat bagrat changed the title vim-buffet doesn't work on neovim Only the current buffer is visible Jun 26, 2019
@EdgarOrtegaRamirez
Copy link

EdgarOrtegaRamirez commented Jun 26, 2019

In my case this was the setting:

let g:lightline = {
      \ 'enable': {
      \   'tabline': 0
      \ },
      \ }

and this is how it looks without any additional buffet config set
image

@bagrat
Copy link
Owner

bagrat commented Jun 27, 2019

@EdgarOrtegaRamirez great, that's what it is supposed to look like. You can customize the colors the way you want as well as apply for fancy stuff like this. Note, the blue #-es are the Tabpages. So in your case you have 4 Tabpages, and currently Tabpage 3 is active.

@hrai
Copy link

hrai commented Oct 9, 2020

In my case this was the setting:

let g:lightline = {
      \ 'enable': {
      \   'tabline': 0
      \ },
      \ }

and this is how it looks without any additional buffet config set
image

This is what worked for me. Perhaps we can leave this issue open as it's not as obvious to find.

@hewcaw
Copy link
Collaborator

hewcaw commented Oct 10, 2020

@hrai
Copy link

hrai commented Oct 12, 2020

@baIIoon not sure why that didn't work for me.

@hewcaw
Copy link
Collaborator

hewcaw commented Oct 14, 2020

@hrai, I updated the README, 27d5a45. I don't have much experience with VimL to answer (clarify) that, so sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants