neovim-qt icon indicating copy to clipboard operation
neovim-qt copied to clipboard

Unable to config neovim-qt

Open Cruising0904 opened this issue 2 years ago • 6 comments

In neovim I put gui font it works though I can't configure from ginit.vim image in ginit.vim image it gives error like above 'not an editor blah blah' in neovim-qt I want to config background transparent image image

I have looked through docs and issues seems like it does not recognize ginit.vim on my machine.

Cruising0904 avatar May 05 '23 04:05 Cruising0904

A few comments, and things to try...

You don't need to include the : in ginit.vim.

Check if :GuiWindowOpacity 0.9 works when run from neovim-qt manually.

Ensure the function GuiWindowOpacity exists in the file /usr/share/nvim-qt/runtime/plugin/nvim_gui_shim.vim.

Ensure ginit.vim is located at ~/.config/nvim/ginit.vim.

Try temporarily removing your dotfiles symlink.

--

If it still doesn't work after all of the above, let me know and we can debug further.

jgehrig avatar May 06 '23 01:05 jgehrig

I am using lazyvim for my config when I launch nvim-qt it gives error first picture When I remove my dotfiles does not complain though hard to tell if the option is affected, seems like nothing happens image

image

Cruising0904 avatar May 11 '23 02:05 Cruising0904

I switched to lazy yesterday and lo and behold, I have the same issue. :100: happy to blame lazy, but as it is popular, it might be worth getting to the bottom of this. As usual, I am happy to test things.

The commands that do not work are:

√ ; rg Gui ~/.config/nvim/ginit.vim
GuiFont! PragmataProMonoLiga Nerd Font:h8
GuiTabline 0
GuiPopupmenu 0
GuiRenderLigature 1

screenshot

✓ ; nvim-qt --version
NVIM-QT v0.2.18.9999
Build type: Release
Compilation: -Wall -Wextra -Wno-unused-parameter -Wunused-variable
Qt Version: 5.15.9
Environment:
  nvim: nvim
  args: --cmd let &rtp.=',/home/usr/bin/../share/nvim-qt/runtime' --cmd set termguicolors
  runtime: /home/usr/bin/../share/nvim-qt/runtime

NVIM v0.10.0-dev-350+gc9f47fca8
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
[…]

I do not have the shim installed…

kierun avatar May 18 '23 09:05 kierun

I checked lazy and found this issue, which describes the problem and solution: install the shim.

I added "equalsraf/neovim-gui-shim" to the list of plugins and now everything is fine.

kierun avatar May 18 '23 12:05 kierun