Neovide: Invalid menu position when using multiGrid

Created on 26 Feb 2021  路  12Comments  路  Source: Kethku/neovide

When using multiGrid, command menu suddenly appears at the center of window, not at the bottom.

I'm using gnome on wayland, with 4k display.

image

bug

All 12 comments

This is a known issue. I believe it is an upstream issue, but I haven't done the necessary work to determine for sure.

@Kethku upstream for what? neovim?

In case it might help, I encountered it in gnvim also (https://github.com/vhakulinen/gnvim/issues/80#issuecomment-675689996).

Upstream in neovim. And yes, that is helpful that its in gnvim too.

It's already reported to neovim repository as well. But, unfortunately, received no attention.

https://github.com/neovim/neovim/issues/12985

I fixed it, now we're waiting for fix to be merged :)

Amazing. Thanks so much for digging in!

@last-partizan I noticed that the characters are positioned incorrectly vertically on the screencap to the PR you made. Do you have any details about what that font is?

@Kethku what do you mean by _incorrectly_? it looks fine for me. I'm using JetBrains Mono Nerd Font, with Iosevka fallback.

set guifont=JetBrains\ Mono\ Nerd\ Font,Iosevka:h24

And this is how it looks with my patch.
image

which looks somewhat different from the example you've linked. Not sure why

Some differences are:

  • screenshot in the PR using neovim from build folder, not installed globally, so it can't load some plugins.
  • my scrrenshot here is the same version, but already installed, so everything loaded correctly. Most notably: vim-airline.

But aside from that, i don't see any differences. Menu is positioned at the same correct spot.

Height of the font is exactly right. This is somewhat mysterious fontconfig shit, previously in gnvim i was setting font size to floats, to get this look, but now when i changed monitor to 4k and gnvim to neovide, h24 gives me what i want. Previously, i was using h11.25 with gnvim, becouse with just 11 and with 1080p resolution font was too wide.

Here is my gnvim screenshot, it's using h12 (neovide and gnvim using differen't font size scales, probably becouse gnvim respects gnome scaling settings, and neovide is not). Font is wider than neovim.

This is fixed now in neovim#master :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aj3423 picture aj3423  路  45Comments

ssxwcz picture ssxwcz  路  50Comments

harish2222 picture harish2222  路  31Comments

IBS27 picture IBS27  路  29Comments

shaunsingh picture shaunsingh  路  27Comments