Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable call signature hints if auto_initialization is off #1046

Open
adigitoleo opened this issue Feb 21, 2021 · 0 comments
Open

Disable call signature hints if auto_initialization is off #1046

adigitoleo opened this issue Feb 21, 2021 · 0 comments

Comments

@adigitoleo
Copy link

I recently changed my completions setup (again...) to use omnifunc=jedi#complete directly. I have mappings etc. already so I promptly set:

let g:jedi#auto_initialization = 0
let g:jedi#auto_vim_configuration = 0

in my vimrc, which mostly worked as expected. However, I still got call signature hints, which weren't cleared after exiting insert mode. From :h g:jedi#show_call_signatures:

Note: This setting is ignored if |g:jedi#auto_initialization| is set to 0. In
that case, if you want to see call signatures, you have to set it up
manually by calling a function in your configuration file: >

In other words, the autocommand block in jedi#configure_call_signatures() is not run, however the call signatures option is still enabled:

     'show_call_signatures': has('conceal') ? 1 : 2

This results in broken call signature hints. Would it be possible to disable call signature hints if auto_initialization is off? I guess this is sort of mentioned in :h g:jedi#auto_initialization as one of the functions it performs:

3. Call `jedi#configure_call_signatures()` if
   `g:jedi#show_call_signatures` is set

but it doesn't explicitly warn that show_callsignatures will not be turned off.

Just a little suggestion for QoL improvement. Thanks for jedi! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant