Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GuiFont doesn't exist when using a different NVIM_APPNAME environment variable #1118

Open
LonelyMusicDisc opened this issue Jul 14, 2024 · 4 comments

Comments

@LonelyMusicDisc
Copy link

The NVIM_APPNAME environment variable is super useful for having multiple configurations, but setting it to something other than nvim breaks the custom commands.

@equalsraf
Copy link
Owner

NVIM_APPNAME=something seems to change the expected locations used by nvim (runtimepath, etc) by append the env var value at the end of paths.

This should not be a problem when the nvim-qt vimscript is loaded by nvim-qt. I did a quick test here and it seems to work as intended.

However if you are loading the shim manually from your config (such as adding equalsraf/neovim-gui-shim as a plugin) then you could run into problems because it is using the wrong path (or configuration).

Can you check if :scriptnames shows nvim_gui_shim.vim being loaded?

The output from nvim-qt --version would also help, so we know which versions your are running.

@LonelyMusicDisc
Copy link
Author

Thank you. It doesn't appear in scriptnames and I'm not doing any manual loading

Output:

NVIM-QT v0.2.18.0
Build type:
Compilation:-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64   -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Wno-unused-parameter -Wunused-variable
Qt Version: 5.15.12
Environment:
  nvim: nvim
  args: --cmd let &rtp.=',/usr/bin/../share/nvim-qt/runtime' --cmd set termguicolors
  runtime: /usr/bin/../share/nvim-qt/runtime

NVIM v0.10.0
Build type: RelWithDebInfo
LuaJIT 2.1.1713773202
Run "nvim -V1 -v" for more info

@equalsraf
Copy link
Owner

Looks pretty normal:

  args: --cmd let &rtp.=',/usr/bin/../share/nvim-qt/runtime' --cmd set termguicolors

i.e. it is expecting to find it in /usr/share/nvim-qt/runtime. Does that folder exist?
Also just in case, is there anything useful in :messages?

@LonelyMusicDisc
Copy link
Author

The folder exists and :messages reports nothing unfortunately

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants