From e2d79c6434f940a21c75bb86d84b9a4d88f86209 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 24 May 2017 20:35:44 +0200 Subject: [PATCH] popup_on_dot: document that it needs completions_enabled It would be ignored already with completions_enabled=0. This documents it and makes the default follow it. --- autoload/jedi.vim | 4 ++-- doc/jedi-vim.txt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/autoload/jedi.vim b/autoload/jedi.vim index 34fe762..e03f8c6 100644 --- a/autoload/jedi.vim +++ b/autoload/jedi.vim @@ -23,7 +23,8 @@ let s:default_settings = { \ 'call_signatures_command': "'n'", \ 'usages_command': "'n'", \ 'rename_command': "'r'", - \ 'popup_on_dot': 1, + \ 'completions_enabled': 1, + \ 'popup_on_dot': 'g:jedi#completions_enabled', \ 'documentation_command': "'K'", \ 'show_call_signatures': 1, \ 'show_call_signatures_delay': 500, @@ -32,7 +33,6 @@ let s:default_settings = { \ 'max_doc_height': 30, \ 'popup_select_first': 1, \ 'quickfix_window_height': 10, - \ 'completions_enabled': 1, \ 'force_py_version': "'auto'", \ 'smart_auto_mappings': 1, \ 'use_tag_stack': 1 diff --git a/doc/jedi-vim.txt b/doc/jedi-vim.txt index 81bf2ce..7fffa1f 100644 --- a/doc/jedi-vim.txt +++ b/doc/jedi-vim.txt @@ -373,6 +373,7 @@ However, when working with large modules, this can slow down your typing flow since you have to wait for jedi to parse the module and show the completion menu. By disabling this setting, completion is only started when you manually press the completion key. +You need to also have `g:jedi#completions_enabled` enabled for this. Options: 0 or 1 Default: 1 (Start completion on typing a period)