-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 automatic semantic completion for specific filetypes #2950
Comments
Use let g:ycm_semantic_triggers = { 'c': [] } |
Correct me if i'm wrong but doesn't
I tried this before submitting the issue and:
Does not work. |
Is there really no way to do this anymore? This functionality used to exist. |
|
In vimrc:
In vim:
Typing
The documentation states otherwise, are the docs incorrect? Is this a bug? |
The old behavior was not working as expected because there was no fuzzy-matching in that case. See issue #961. Pressing
No, the docs are correct but I think that being able to override the default triggers would be an improvement. However, this would break users adding custom triggers to the predefined ones so it's probably out of the question. Maybe we could add a new option with that behavior and deprecate |
Okay, I was obviously wrong about |
…ble, r=puremourning [READY] Do not disable omnifunc when filetype completion is disabled Prior to PR #2657, it was possible to trigger Vim's omnifunc with `<C-Space>` even if semantic completion was disabled for the current filetype through the `g:ycm_filetype_specific_completion_to_disable` option. It worked because `<C-Space>` was mapped to `<C-X><C-O><C-P>`, which are the keys to trigger the omnifunc. PR #2657 changed that by making `<C-Space>` directly call the `SendCompletionRequest` function with `force_semantic` sets to `True`. This change was necessary to get fuzzy matching with the omnifunc (see issue #961) but broke the `<C-Space>` behavior when filetype completion is disabled. This PR restores that behavior. Fixes #2950. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/2978) <!-- Reviewable:end -->
We used to be able to use the
g:ycm_filetype_specific_completion_to_disable
setting for this. However at some point the behavior has changed and this entirely disabled semantic completion for these filetypes even when pressing<C-Space>
.Where as previously it only disabled the automatic triggers.
How do I disable semantic completion automatic triggers for certain filetypes, while still allowing
<C-Space>
to continue working?The text was updated successfully, but these errors were encountered: