Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What's the easiest way to develop a new plugin? #316

Closed
TomasTomecek opened this issue Mar 22, 2018 · 4 comments
Closed

What's the easiest way to develop a new plugin? #316

TomasTomecek opened this issue Mar 22, 2018 · 4 comments
Labels

Comments

@TomasTomecek
Copy link
Contributor

Hi, thanks again for helping me out here #279

I finally found some free time to work on my plugin. Unfortunately I'm struggling with a good development workflow.

I added the file as you suggested: plugin/my-thing.vim and I'm starting neovim as nvim -c ":set runtimepath+=$PWD" which works great because it loads my plugin from rplugin/python3/my_plugin/, but unfortunately it doesn't load the code from the plugin/ folder. Is this a bug? Is there a better way?

@Shougo
Copy link
Contributor

Shougo commented Mar 23, 2018

You should create the minimal vimrc like this to load your plugin.

set runtimepath+={some_plugin_path}
$ nvim -u test.vimrc

@stsewd
Copy link
Contributor

stsewd commented Mar 23, 2018

I think this questions/answers/tips would be great additions for a guide section under the pynvim docs.

@justinmk
Copy link
Member

This should already be answered in the readme: https://github.com/neovim/python-client#remote-new-style-plugins

If something's missing in that section, please say what.

TomasTomecek added a commit to TomasTomecek/python-client that referenced this issue Mar 23, 2018
Fixes neovim#316

Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
TomasTomecek added a commit to TomasTomecek/python-client that referenced this issue Mar 23, 2018
Fixes neovim#316

Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
TomasTomecek added a commit to TomasTomecek/python-client that referenced this issue Mar 25, 2018
Fixes neovim#316

Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
TomasTomecek added a commit to TomasTomecek/python-client that referenced this issue Mar 26, 2018
Fixes neovim#316

Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
TomasTomecek added a commit to TomasTomecek/python-client that referenced this issue Apr 4, 2018
Fixes neovim#316

Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
@justinmk
Copy link
Member

#317

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants