YouCompleteMe plugin for (Neo)Vim with UE4

Hi everyone,

I was wondering if anyone configured YouCompleteMe plugin for working with UE4?
I am using this plugin for the first time, so I don’t know how to configure it.
My current .ycm_extra_conf,py is the default one without flags for Mac.
With this setup i get errors for UE4 classes, macros, headers…(showed in pictures)
I would appreciate if anyone can tell me how to configurate YouCompleteMe or suggest other plugins for (Neo)vim that would do this job insted of ycm.

Regards,

Any luck on that? I never been a big fan of vs, so I was hoping to use vim

TL DR: Not really.

Well, found a way to start (neo)vim from UE4, but I got a job soon after, so didn’t really put too much time in ycm. Using find I located directory which contains basic classes so I assume that listing it in .ycm_extra_conf,py would do the job with detecting classes(haven’t tested) but don’t expect it to solve everything. You will have to test it or find someone who knows what he’s doing :smiley:
And also, there are other autocompletion plugins which may be better for UE4. I am really new to all of this, and on top of that I postponed learning UE4 because of job, so unless someone offers solution here, this post is useless.

Do you mind to share how did you get neovim to start from UE4. I couldn’t get it to work using SensibleEditorSourceCodeAccess. Thank you!

Never mind, I found the issue and created a pull request read EDITOR env var before running sensible-editor to make the plugin… by NuLL3rr0r · Pull Request #15 · fire/SensibleEditorSourceCodeAccess · GitHub.

Thank you so much.

Sorry I haven’t seen this in time.
I’m glad you made it.

I hacked this together once: https://gist.github.com//fde8c47f4244c00a10443e0b255033d0

Maybe it is useful to you. It parses the Visual Studio Project file to extract include directories and symbols, but made libclang (and YcmServer) crash on certain files.
It has been a while since I last tried this though. May be resolved in newer YCM/clang versions.

i also found this thread on github YCM is ignoring glob include paths · Issue #2669 · ycm-core/YouCompleteMe · GitHub it seems that it won’t work with NeoVim and Ycm; at least it’s not easy to setup in order to get auto-completion.