landaire / deoplete-swift

Swift completions in Vim using deoplete
MIT License
24 stars 9 forks source link

Choose a completer such as SourceKitten based on the given path. #8

Closed mitsuse closed 8 years ago

mitsuse commented 8 years ago

This pull-request for preparation of SourceKittenDaemon support. The main modifications are as follow:

For SourceKittenDaemon support, SourceKittenDaemon counterpart of completer will be required. It must implement the same interface of SourceKitten's complete method.

I assume that Source manages pairs of the port number of a daemon instance and the path of .xcodeproj and __choose_completer generate SourceKittenDaemon completer by using them.

This pull-request also contains some refactoring and refinement.Please read the commit comments. Sorry for conflicting with some part of #4.

smallfx commented 8 years ago

@mitsuse this looks great! i'm gonna merge it in and start working on the SourceKittenDaemon Source class.