jerrymarino / iCompleteMe

Swift comprehension in Vim: code completion and diagnostics
GNU General Public License v3.0
56 stars 3 forks source link

Coexist: iCompleteMe client namespace #3

Closed jerrymarino closed 7 years ago

jerrymarino commented 7 years ago

This patch allows iCompleteMe and YouCompleteMe to operate in the same process. I need this because I'll be using YouCompleteMe for some C++, C, and ObjC coding in the same projects as swift.

There is a single vim python process, for all plugins, so it isn't possible to have ICM and YCM adding the same paths, or there will be collisions.

YCM shares code with YCMD by adding the paths of YCM to the global import path.

Additionally, namespace global variables to prevent collisions.

jerrymarino commented 7 years ago

CI failure on Linux is unrelated to this patch - green on OSX, fix in a followup.