Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does coc.nvim require Python?

Tags:

neovim

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?

like image 517
cseelus Avatar asked Oct 15 '22 00:10

cseelus


1 Answers

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.

like image 61
fannheyward Avatar answered Oct 20 '22 16:10

fannheyward