-
Notifications
You must be signed in to change notification settings - Fork 67
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
Auto Completion only on triggerChar #553
Comments
that part of code, which that func to get trigger kind maybe not complete
correct, since now it not only kind 1 or 2, but also 3, so even you added such
feat or flag, the result maybe weird still.
…--
shane.xb.qian
|
i meant you either refine that func (and related others code) to make it work fine with all kinds, or just disable auto-compl, then using omni-compl for all cases including trigger char cases. |
Ok, thank you for the feedback. I hope the PR addresses your concerns. Both options can now be set to any combination of trigger types and can be easily extended to include new ones. |
seems you are mis-understanding, i meant `trigger kind` was not only 1, 2 but also 3 now per spec.
// if you cannot refine that, seems that PR was unnecessary.
…--
shane.xb.qian
|
Why do you mention trigger kind 3? What do you mean by "refine that"? |
Why do you mention trigger kind 3?
Because you mentioned in the OP:
```
get the behavior I want by modifying (or adding another) [check for triggerKind after this line](https://github.com/yegappan/lsp/blob/89d5350d756a9bd19bfc3ac0e30c53228e0b28d6/autoload/lsp/completion.vim#L478)
```
It doesn't exist [in GetTriggerAttributes()](https://github.com/yegappan/lsp/blob/master/autoload/lsp/completion.vim#L446-L466) on the master branch
it is in the spec.
// fine, that's it.
…--
shane.xb.qian
|
Hi.
Thanks for the plugin, it's awesome!
I would like to configure completion such that it is only triggered automatically when I type a trigger character (e.g. ".", ">" for C++). If I need completions at other times, I can use C-X C-O.
I think this cannot be done with the current configuration options. I can get the behavior I want by modifying (or adding another) check for triggerKind after this line.
If you are fine with it, I'd like to contribute this as a PR:
Would you merge that? Is there anything else I need to consider?
Best regards.
The text was updated successfully, but these errors were encountered: