jalvesaq / Nvim-R

Vim plugin to work with R
GNU General Public License v2.0
966 stars 125 forks source link

Code completion in Python chunk not working #442

Closed oli666 closed 5 years ago

oli666 commented 5 years ago

I am using 'ncm2/ncm2-jedi' to do completion for py files. This works perfectly well. I do not get completion to work though for python chunks within rmd files (The completion works for R chunks). Having temporarily switched from 'ncm2/ncm2-jedi' to 'davidhalter/jedi' had no effect either.

I have tried after having disabled all plugins except the following:

Plug 'ncm2/ncm2' Plug 'roxma/nvim-yarp' Plug 'gaalcaras/ncm-R' Plug 'jalvesaq/Nvim-R' Plug 'jalvesaq/R-Vim-runtime' Plug 'ncm2/ncm2-bufword' Plug 'ncm2/ncm2-path' Plug 'w0rp/ale' Plug 'ncm2/ncm2-ultisnips' Plug 'ncm2/ncm2-jedi'

Syntax highlighting is working for both, R and Python within chunks. System: NVIM v0.5.0-dev on Ubuntu 18

jalvesaq commented 5 years ago

Perhaps you should report the issue to the developer of ncm2-jedi because I did nothing to make ncm-R deal with Rmd files. This is a feature native to ncm-R:

https://github.com/gaalcaras/ncm-R/blob/master/pythonx/ncm2_subscope_detector/rdocs.py

oli666 commented 5 years ago

Reported as suggested