Note: I am fairly new to NeoVim. So far I have installed plugins by simply unzipping the plug-in master folder into the directory
/usr/share/nvim/runtime/plugin. In case there is no master folder I just move the pluginname.vim file to this directory. It has worked well until now.
I am trying to install the GhostText plugin which goes with the GhostText extension for Firefox. I did it as before, by simply unzipping the plug-in master folder into the directory
/usr/share/nvim/runtime/plugin, so that now I have a directory called
vim-ghost-master in that directory.
When I run a nvim session and run the command
:GhostInstall (which does autocomplete), I get the following error:
What should I do?
Just use packages to install Vim plug-ins.
Simply create a directory
~/.vim/pack/something/start, where "something" is literally anything, perhaps use your nickname "Soap".
Then unpack or git clone the plug-in tree there, so you get
~/.vim/pack/Soap/start/vim-ghost-master and then you get the plug-in directories (
python3) all there.
This would probably fix the plug-in, since it looks like it's failing to find the Python code, most likely because it's expecting to find it at the root of a plug-in directory, rather than somewhere inside a subdirectory of
If you're writing to the system location because you want the plug-in to be available to all users in your system, you can still use packages, just use the appropriate location, which it seems would be
/usr/share/nvim/site/pack in NeoVim (
/usr/share/vim/vimfiles/pack in Vim 8), and same scheme of creating a subdir (any name) and then
start/ under it. (See
:help 'packpath' and
:help 'runtimepath' for more information on these paths.)
Answered by filbranden on December 11, 2020
1 Asked on December 30, 2021
2 Asked on December 22, 2021 by songcheng-li
0 Asked on December 16, 2021 by henrique-barcelos
1 Asked on December 16, 2021
0 Asked on December 16, 2021
1 Asked on December 14, 2021 by paul-rougieux
0 Asked on December 14, 2021 by haris-muzaffar
1 Asked on November 27, 2021
3 Asked on November 22, 2021
2 Asked on November 20, 2021
3 Asked on November 17, 2021
Get help from others!