cseelus
cseelus

Reputation: 1679

Does coc.nvim require Python?

The installation instructions don't mention the need for Python or specific Python plugins. Although when I add coc.nvim to my vim plugs (Plug 'neoclide/coc.nvim', {'branch': 'release'}), install and restart Neovim, I get the following error:

[coc.nvim] Error on execute python script: request error nvim_command - Vim(pyxfile):E319: No "python3" provider found. Run ":checkhealth provider"

I'm a long time VIM/Neovim user and have my fair share of plugins installed, none of them has any dependency on 3rd party Python scripts, and I would like to keep it that way.

So my question is, does coc.nvim require Python or is there something misconfigured on my end?

Upvotes: 5

Views: 4957

Answers (3)

ErinChocolate
ErinChocolate

Reputation: 1

I solved it by pip3 install --user pynvim

Upvotes: 0

mumboFromAvnotaklu
mumboFromAvnotaklu

Reputation: 65

I solved it using "snippets.ultisnips.usePythonx": false and running pip install neovim in my virtual environment.

Upvotes: 0

fannheyward
fannheyward

Reputation: 19287

You're using https://github.com/neoclide/coc-snippets , which will load and parse Ultisnips snippets, some snippets need Python to run.

You can disable Python by setting "snippets.ultisnips.usePythonx": false in your coc-settings.json.

Upvotes: 4

Related Questions