landaire / deoplete-swift

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

doesn't seem to take context into account #1

Closed brendanjerwin closed 8 years ago

brendanjerwin commented 8 years ago

It seems to get completions from sourcekitten, but I suspect that the position offset (or maybe the input file?) isn't right.

cursor_and_default

landaire commented 8 years ago

You know, that's something I suspected as well and I'm not sure why it happens. The foundation for this code was taken from https://github.com/landaire/deoplete-d which works just fine. I did some testing before with sourcekitten and the same file/position via the CLI and still couldn't get it to work if I remember correctly. I'll do some more testing and get back to you though.

brendanjerwin commented 8 years ago

I found this guy: https://github.com/mitsuse/autocomplete-swift/tree/master it seems to have a lot of it figured out, but for the wrong completion engine!

brendanjerwin commented 8 years ago

I notice he plans to support neovim... I wonder if there might be an opportunity to merge approaches? (peanut gallery here, I know.)

landaire commented 8 years ago

With regards to the autocomplete-swift project, I'll see if I can improve this a bit. I know I said I'd fix this issue a couple weeks ago, things came up, life happens, etc. I'm updating the README right now to add some TODO items.