mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 10:54:22 +08:00
Add an option to enable/disable case insensitive completion.
Options: - Global option: g:jedi#case_insensitive_completion - Buffer-local option: b:jedi_case_insensitive_completion Values: - 0 to disable case insensitive completion. - 1 to enable case insensitive completion (default).
This commit is contained in:
@@ -321,6 +321,10 @@ def get_pos(column=None):
|
||||
@_check_jedi_availability(show_error=False)
|
||||
@catch_and_print_exceptions
|
||||
def completions():
|
||||
jedi.settings.case_insensitive_completion = \
|
||||
bool(int(vim_eval("get(b:, 'jedi_case_insensitive_completion', "
|
||||
"g:jedi#case_insensitive_completion)")))
|
||||
|
||||
row, column = vim.current.window.cursor
|
||||
# Clear call signatures in the buffer so they aren't seen by the completer.
|
||||
# Call signatures in the command line can stay.
|
||||
|
||||
Reference in New Issue
Block a user