Skip to content

How to run nvim +UpdateRemotePlugins during build time #1

@sktrinh12

Description

@sktrinh12

Hi Nico,

Its Spencer, perhaps its better to communicate on this. I installed Shuogo/deoplete autocompletion plugin, ipython-cell REPL plugin and ripgrep for fzf plugin. It builds however the plugins won't work unless I type in :UpdateRemotePlugins when I enter the containerized nvim instance. Is there a way to do this in the Dockerfile? I tried putting it in the entrypoint.sh and it seems to work however, it takes a long time to open nvim (because it has to update all the plugins). I tried putting this in the Dockerfile:

RUN set -x && \
    su-exec neovim nvim +PlugInstall +qall && \
    su-exec neovim nvim +PlugUpdate +qall && \
    su-exec neovim nvim +UpdateRemotePlugins +qall \

However it gives me an error: ipython-cell requires py >= 2.7 or py3. I'm assuming it is not in the virtual environment which is python3; and using the default python 2.7.

Also, when I type :checkhealth I noticed there is a warning for the Clipboard. It would be nice to have this so I can copy paste to/from local clipboard. It says no clipboard tool found. I checked the help and it requires pbcopy or xclip/xcel. I put xclip in the RUN apk --update add \ section; however it still doesn't register. How can I sort these issues out? Appreciate the help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions