1

After resisting for a bit, I decided to try the plugin manager vim-plug.

It seemed to work well when installing the GhostText plugin, except that I had to do the installation in a sudo nvim session, and the plugin only works when in such a session. If I start my session with the command nvim and run the command :GhostStart, I get the following error:

enter image description here

Note: I already changed the owner of the directory ~/.local/share/nvim to myself, and it did not help.

How can I solve this?

EDIT: If I run :GhostInstall in a non-sudo session, I get this error: enter image description here

and env | grep ^XDG_ outputs: enter image description here

8
  • The GhostText documentation states that the SimpleWebSocketServer is automatically installed as a pip --user dependency when :GhostInstall runs. You ran GhostInstall as root, so it makes sense that it won't be installed for a different user. You mentioned that you had to do the installation in a sudo nvim session, but not why you had to install it in that way. Could you add some more details to your question explaining this, please?
    – Rich
    Commented Aug 30, 2019 at 15:40
  • @Rich I will update my question.
    – soap
    Commented Aug 30, 2019 at 15:54
  • Try running the same command on the command-line, to see its output: python3.6 -m pip install --user -r ~/.local/share/nvim/plugged/vim-ghost/requirements_posix.txt.
    – filbranden
    Commented Aug 30, 2019 at 16:29
  • @filbranden It says that file does not exist. And weirdly enough, if I do ls in the plugged directory it says it is empty
    – soap
    Commented Aug 30, 2019 at 16:31
  • Actually, for some reason it seems it's trying to use /.local (under the root directory) rather than ~/.local (under your home directory)... Maybe that's a big part of the problem?
    – filbranden
    Commented Aug 30, 2019 at 16:32

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.