yami-beta / asyncomplete-omni.vim

Omni completion source for asyncomplete.vim
MIT License
39 stars 11 forks source link

Fix completion #7

Closed astyagun closed 6 years ago

astyagun commented 6 years ago

Not sure how this syntax works or if this is even a good idea to make this change, but it fixed completion for me. Omni function I'm using is here: https://github.com/astyagun/dotvim/blob/e0442d56873312b53d9914776d028f82d97d2fe8/my_plugin/global_complete.vim

astyagun commented 6 years ago

After reading #2 and #3 I'll add, that I'm running MacVim:

VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Dec 22 2017 03:30:17)
macOS version
Included patches: 1-1420
astyagun commented 6 years ago

My guess is that 'omnifunc' in issue #2 returned incorrect start position when called with first argument equal 0. Assuming that my current 'omnifunc' returns correct start position.

yami-beta commented 6 years ago

I confirmed your PR works correctly. Thanks !