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
BUG: No buffer title when opening the preview #1405
Comments
Preview is, as the name suggests, a preview window and not meant to be used for editing. Regarding the name of the buffer, that [No Name] refers to the buffer that was opened there from before. The preview window is just a temporary overlay that covers 100% size of the window. |
@pysan3 Thanks for your reply. When using the |
The buffer name you are seeing is coming from whatever tabline plugin (eg bufferline.nvim, nvim-cokeline, nougat.nvim, ...) you installed. To keep it short, the top line in vim is used to list all real opened buffers. In fact, if you use bufferline.nvim, you should see all buffer names dimmed (the color of We do not control what is shown in the tabline and tabline plugins are doing their job to show a horizontal list of all listed buffers (in your case, there's only one buffer which might make it unclear tho). If you really don't want to see that line |
Did you check docs and existing issues?
Neovim Version (nvim -v)
NVIM v0.9.2
Operating System / Version
Centos 6
Describe the Bug
I am using the TAB key to preview the file, like NvimTree. Though it shows the file preview, it doesn't show the buffer title.
Also, I can go to the preview buffer and edit it. However, when I go to the previous/next buffer, the preview buffer is lost, which is unsaved.
Screenshots, Traceback
Steps to Reproduce
Expected Behavior
It should show the preview of the file on the right side, with the buffer title (name of the file on the buffer line).
Your Configuration
The text was updated successfully, but these errors were encountered: