Settings¶
This module contains variables with global Jedi settings. To change the
behavior of Jedi, change the variables defined in jedi.settings
.
Plugins should expose an interface so that the user can adjust the configuration.
Example usage:
from jedi import settings
settings.case_insensitive_completion = True
Completion output¶
-
jedi.settings.
case_insensitive_completion
= True¶ The completion is by default case insensitive.
-
jedi.settings.
add_bracket_after_function
= False¶ Adds an opening bracket after a function, because that’s normal behaviour. Removed it again, because in VIM that is not very practical.
Filesystem cache¶
-
jedi.settings.
cache_directory
= '/home/docs/.cache/jedi'¶ The path where the cache is stored.
On Linux, this defaults to
~/.cache/jedi/
, on OS X to~/Library/Caches/Jedi/
and on Windows to%APPDATA%\Jedi\Jedi\
. On Linux, if environment variable$XDG_CACHE_HOME
is set,$XDG_CACHE_HOME/jedi
is used instead of the default one.
Parser¶
-
jedi.settings.
fast_parser
= True¶ Use the fast parser. This means that reparsing is only being done if something has been changed e.g. to a function. If this happens, only the function is being reparsed.
Dynamic stuff¶
-
jedi.settings.
dynamic_array_additions
= True¶ check for append, etc. on arrays: [], {}, () as well as list/set calls.
-
jedi.settings.
dynamic_params
= True¶ A dynamic param completion, finds the callees of the function, which define the params of a function.
-
jedi.settings.
dynamic_params_for_other_modules
= True¶ Do the same for other modules.
-
jedi.settings.
auto_import_modules
= ['gi']¶ Modules that are not analyzed but imported, although they contain Python code. This improves autocompletion for libraries that use
setattr
orglobals()
modifications a lot.