SmiteshP / nvim-navbuddy

A simple popup display that provides breadcrumbs feature using LSP server
Apache License 2.0
770 stars 30 forks source link

Right panel not rendering #3

Closed ColonelPhantom closed 1 year ago

ColonelPhantom commented 1 year ago

My navbuddy looks like this: image

Any idea what's wrong or what could be the problem?

SmiteshP commented 1 year ago

Does this also appear this way when there is text on right panel? And does the left panel also look like this when empty? Also there seems to some issue with the border itself, why is it so thick? Try setting border = "none" under window options and let me know if this occurs in that case too.

SmiteshP commented 1 year ago

Also try pasting this in your neovim buffer "│", should look like a straight vertical line. Maybe your font is missing box drawing characters.

ColonelPhantom commented 1 year ago

Does this also appear this way when there is text on right panel?

There is supposed to be text on the right panel, the sections dict contains left, mid, right but the text is not showing up.

And does the left panel also look like this when empty?

No, the left panel is colored normally: image

Also there seems to some issue with the border itself, why is it so thick? Try setting border = "none" under window options and let me know if this occurs in that case too.

This does not help, the right panel is still a gray square:

image

Also try pasting this in your neovim buffer "│", should look like a straight vertical line.

This seems to work normally.

ColonelPhantom commented 1 year ago

So I just tried some other color schemes, like desert (which is built in), and it seems to work with it, but it looks weird. See for yourself: image

The colors on the right pane are completely different than for the other two sections.

SmiteshP commented 1 year ago

So added fix for a bug, I wasn't setting left and mid section's border highlight properly. So the issue in the above screenshot should be fixed.

SmiteshP commented 1 year ago

In the previous screenshots, the colourscheme you are using, can you check if it has FloatBorder highlight defined. If so it looks like it has foreground and background set to same colour. You could set FloatBorder (or NavbuddyFloatBorder) to have light foreground on dark background for it to look as expected.

SmiteshP commented 1 year ago

@ColonelPhantom I made some recent changes as per discussion with author of nui.nvim, hope it has solved this issue. Can you confirm?

ColonelPhantom commented 1 year ago

The right pane still is colored slightly differently, but the display is now readable for both of the colorschemes I used in the screenshots above!