As far as I understand YouCompleteMe comes by default with this handy preview window showing whatever the GetDoc subcommand returns whenever you select a completion.
The issue I'm currently facing with it however is that while it works perfectly fine on Python files, it doesn't trigger at all on Rust files. To clarify I'm merely talking about the preview window showing the documentation here, the autocompletions pop up just fine.
I've looked through the documentation and confirmed that GetDoc supports Rust. I verified that this is indeed working by manually triggering the command using :YcmCompleter GetDoc
which returned the appropriate documentation just fine.
While searching for ways to fix this and have it automatically trigger I have also encountered let g:ycm_add_preview_to_completeopt
so I included that in my .vimrc
just to make sure. Reading up on completeopt
I checked what :set completeopt?
returns: completeopt=preview,menuone
. That looks fine to me as well.
At this point I'm rather lost and my google-fu is also exhausted. What am I missing here? If I'm missing some important information please let me know.