rohit-px2 / nvui

A modern frontend for Neovim.
MIT License
1.73k stars 50 forks source link

Spacing issues on macOS #70

Closed bmulholland closed 2 years ago

bmulholland commented 3 years ago

There are weird blank spots and alignment issues on macOS that I haven't seen using the same config on different (G)UIs:

Near the end of a line: there's text not showing, as you can see where my cursor is:

Screen Shot 2021-09-22 at 15 49 07

Here there are weird spaces before the :: chars:

Screen Shot 2021-09-22 at 15 50 14

Here there's one space before and after the = sign. Also, the word actually reads "URL" and the cursor is on the R - but it's overlapping the L, so you see two R's.

Screen Shot 2021-09-22 at 15 50 58

And here's the telescope UI:

Screen Shot 2021-09-22 at 15 52 44
rohit-px2 commented 3 years ago

Yeah that doesn't look right. I think it might (potentially) be that the font width is bigger than nvui has calculated it? Some questions:

bmulholland commented 3 years ago

guifont is VictorMono Nerd Font. It has ligatures so maybe that's the problem?

Don't have time to test different fonts or sizes right now, will report back later.

rohit-px2 commented 3 years ago

Ligatures shouldn't be the problem. Could you try building #68 and seeing if that fixes it?

rohit-px2 commented 3 years ago

Actually I think it might be the font. I just installed Victor Mono Nerd Font on Windows and those graphical glitches are showing up for me. Victor Mono (non-nerd font) works perfectly fine though. I'll try to fix this. In the meantime, if other fonts are working, you can try defining a fallback font e.g. set guifont=Victor\ Mono,FiraCode\ NF for nerd font fallback. Edit: I tried set guifont=Victor\ Mono,VictorMono\ NF and I don't get any glitches. It might be a ligature bug due to patching with nerd fonts.

bmulholland commented 3 years ago

Thanks for the workaround. I'm evaluating other GUIs now, will come back around to nvui later :)