-
-
Notifications
You must be signed in to change notification settings - Fork 960
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Can or how to trigger signature help? #2656
Comments
|
@chemzqm, I tried to trigger the signature help using :call CocAction('showSignatureHelp'), or try to assign this command a map, no signature text display, however when I use autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp'), and in select mode when entering function parameter, it will trigger the signature help, quite don't understand here |
Your language server could be slow to response. |
I think it isn't the timeout fault, when I use autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp') , the signature is returned instantly, I already bumped the signature.triggerSignatureWait to maximum 1000, but still not working when directly invoking command :call CocActionAsync('showSignatureHelp') |
Basically, I want a keymap that can trigger function signature help, not automatically triggered when entering function parameter(CocJumpPlaceholder)), do you know is there a workable solution to this? @chemzqm |
|
@yueyingjuesha Do you want to map "signature help" in insert mode? e.g: inoremap <silent> ,s <C-r>=CocActionAsync('showSignatureHelp')<CR> |
That's pretty nice, it works! |
Awesome |
Is your feature request related to a problem? Please describe.
I'm trying to set up signature help to be triggered just as it is possible with completion (ig by
<Tab>
or<c-space>
).Describe the solution you'd like
Documentation for signature has:
And for completion:
That "trigger" option and function/setting similiar to
inoremap <silent><expr> <c-space> coc#refresh()
for signature help is what I'm looking for.Additional context
I'm aware of signature.triggerSignatureWait.
The text was updated successfully, but these errors were encountered: