Search code examples
pythonvimneovimcoc.nvim

Setting up coc.nvim for python


I have installed coc.nvim and extension coc-python(:CocInstall coc-python)

When I opened file I refused of linting and then get error:

[coc.nvim] Jedi error: Traceback (most recent call last):                                                                                                                File "completion.py", line 694, in <module>
[coc.nvim] Jedi error: Traceback (most recent call last):                                                                                                      
[coc.nvim] Jedi error:     import jedi
ModuleNotFoundError: No module named 'jedi'

I tried to reinstall extension and plugin but It doesn't help.


Solution

  • It's recommended to use https://github.com/fannheyward/coc-pyright if you're using Python 3, or use https://github.com/pappasam/coc-jedi if you're using Jedi.