Skip to content

Commit

Permalink
README: improve FAQ for slowness, add deoplete-jedi
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed authored and davidhalter committed Aug 16, 2017
1 parent 60bdff8 commit 0c6a2b7
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -221,16 +221,30 @@ Don't even think about changing the Jedi command to ``<Tab>``,
use `supertab <https://github.com/ervandew/supertab>`_!


The completion is waaay too slow!
---------------------------------
The completion is too slow!
---------------------------

1. Completion of complex libraries (like Numpy) should only be slow the first
time you complete them. After that the results should be cached and very fast.

2. If it is still slow after the initial completion and you have installed the
python-mode Vim plugin, try disabling its rope mode:

.. code-block:: vim
let g:pymode_rope = 0
Completion of complex libraries (like Numpy) should only be slow the first time
you complete it. After that, the results should be cached and very fast.
See issue `#163 <https://github.com/davidhalter/jedi-vim/issues/163>`__.

If it's still slow, in case you've installed the python-mode VIM plugin, disable
it. It seems to conflict with jedi-vim. See issue `#163
<https://github.com/davidhalter/jedi-vim/issues/163>`__.
3. You can also use `deoplete-jedi <https://github.com/zchee/deoplete-jedi>`__
for completions, which uses Jedi, but does completions asynchronously
(requires Neovim).
It makes sense to use both jedi-vim and deoplete-jedi, but you should disable
jedi-vim's completions then:

.. code-block:: vim
let g:jedi#completions_enabled = 0
Testing
=======
Expand Down

0 comments on commit 0c6a2b7

Please sign in to comment.