davidhalter / jedi-vim

Using the jedi autocompletion library for VIM.
MIT License
5.27k stars 370 forks source link

Vim hangs when working on files with fastai import #1069

Open tom-doerr opened 2 years ago

tom-doerr commented 2 years ago

When I work on Python files that contain imports from the fast.ai library vim freezes for a long time. This only happens when the jedi-vim plugin is enabled.

The issue was already discussed here, here and here. The solution apparently is to add "jedi.jediSettings.autoImportModules": ["fastai", "fastcore"], to the coc config. Running :CocConfig doesn't work for me and it's unclear to me where I have to put the Lua code that was posted.

Is there any code/config-option that I can paste directly into my vimrc?