neovim-gtk
neovim-gtk copied to clipboard
NGTransparency not recognized
The command :NGTransparency .5 .5
Yields
E492: Not an editor command: NGTransparency .5 .5
As per wiki I think it should work.
Technical information (please complete the following information):
- OS: Ubuntu 18.14 LTS @ linux 4.15.0-45-generic / compton v5.1
- Neovim version: v0.3.1
- Neovim-Gtk build version: 0.2.0, latest commit c075c3232fd7cc3c8c95f5a5f93d7273cb661398
Check this
From neovim-gtk-git AUR package, it copies to
/usr/share/nvim-gtk/runtime/nvim_gui_shim.vim
, neovim doesn't source this directory by itself, check #13,Find if this file is in your system and run
:scriptnames
inside neovim, seehelp 'runtimepath'
Look for /usr/share/nvim-gtk/runtime/nvim_gui_shim.vim
https://github.com/daa84/neovim-gtk/blob/c075c3232fd7cc3c8c95f5a5f93d7273cb661398/runtime/plugin/nvim_gui_shim.vim#L62
Try to link to /usr/share/nvim/runtime/plugin
:
sudo ln -s /usr/share/nvim-gtk/runtime/nvim_gui_shim.vim /usr/share/nvim/runtime/plugin
and restart nvim-gtk.
Seems that /usr/share/nvim-gtk/runtime/nvim_gui_shim.vim
is hard coded, as I installed it with PREFIX=~/nvim-gtk
.
find . | grep gui ./share/nvim-gtk/runtime/plugin/nvim_gui_shim.vim
:source
-ing the file manually does enable the command. This seems to set the transparency only towards the configured :highlight normal guibg
color, but if it is set to none
, it uses black instead of the desktop background.
Isn't it a better idea just to add /usr/share/nvim-gtk/runtime/
to runtimepath
?
:source
-ing the file manually does enable the command.
That doesn't work for me. I get E746: Function name does not match script file name: provider#clipboard#Call
(but I'm setting s:GuiInternalClipboard
).
Linking the file like @davidsierradz suggested works. But that also makes the commands available in console nvim and they (obviously) fail when executed.
For some reason, adding source /usr/share/nvim-gtk/runtime/nvim_gui_shim.vim
to my ~/.config/init.vim
file doesn't work, either. It doesn't show up in the output of :scriptnames
(though my ~/.vimrc file, which is included by source
ing in ~/.config/init.vim does).