ldelossa / nvim-ide

A full featured IDE layer for Neovim. Heavily inspired by VSCode.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

offset for bufferline.nvim

technicalpickles opened this issue · comments

If you are using bufferline.nvim, by you'll end up with the first tab right above the left hand panel:

CleanShot 2022-12-04 at 15 10 56

There's an option to offset this, but requires a bit of extra configuration:

require("bufferline").setup({
	options = {
		offsets = {
                         -- you might already have this if you've used nvim-tree
			{
				filetype = "NvimTree",
				text = "",
				highlight = "Directory",
				text_align = "left",
			},
                         -- add this
			{
				filetype = "filetree",
				text = "",
				highlight = "Explorer",
				text_align = "left",
			}
		},
	},
})

Afterwards, it looks like this:

CleanShot 2022-12-04 at 15 18 10

I'm not sure where the boundaries lie between these plugins, if it should account for it, or update the other plugin or what, but wanted to note it as something users may run into.

Just my thoughts about this. I think the default position of bufferline looks perfectly fine. Unless it is possible to have the left hand panel come all the way up to the top of the screen so that there isn't an empty space/line above it.
Maybe just some documentation specific to bufferline users would be useful?

This is really much more about bufferline and not nvim-ide. So im not sure this is the right place for this issue. Feel free to add a small snippet in the nvim-ide.txt about this tho.