davidhalter / jedi-vim

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

change jedi cache path #778

Closed anirudt closed 3 years ago

anirudt commented 6 years ago

Issue

Is there an option to change the cache path for jedi-vim to something other than ~/.cache/jedi? I have some issues using this as the path. If this has already been discussed/elaborated, please let me know.

Steps to reproduce

Output of “:verbose JediDebugInfo”

davidhalter commented 6 years ago

There is a setting in jedi that you can overwrite (jedi.settings.cache_directory). However jedi-vim currently doesn't use it. If you want you can create a pull request to make that configurable. I won't implement that myself.

anirudt commented 6 years ago

Hi,

Could you give me some pointers to a file in which the above variable is referenced? I couldn't find it (cloned & grepped on it). It would be useful, I do intend on sending a PR.

davidhalter commented 6 years ago

It's not part of jedi-vim. The variable you need to change is part of jedi. This is a subrepository in jedi-vim and already imported.

You need to change jedi.settings.cache_directory in pythonx/jedi_vim.py.

davidhalter commented 3 years ago

Decided not to implement this, as there is not enough interest from the community.