akinsho / bufferline.nvim

A snazzy bufferline for Neovim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request]: A method to horizontally center a document in a pane

stevenxxiu opened this issue · comments

What?

I'm trying to migrate to Neovim, coming from Sublime Text.

I'd like a method to horizontally center a document in a pane. Ideally a pane instead of a tab, so I can put 2 panes side-by-side in a tab as well.

To see what I mean, here's a screenshot of the MarkdownEditing package in Sublime Text:

Screenshot_2023-10-08_19-32-45

Why?

This makes it a lot easier on the eyes, as the terminal itself can be rather wide. There will be no need to constantly look to the left of it.

People want it enough that I've seen a few plugins implement this. One is https://github.com/shortcuts/no-neck-pain.nvim. But I don't think it will work super well with bufferline. bufferline might show the empty buffers that this plugin creates just for spacing, as tabs.

After trying this, it seems to work with bufferline. I'll open if I find any issues.