I don't have any experience with vim plugins, so this might be totally wrong. But it seems to fix the issue in #302.
EDIT: Also seems to fix #305.
Completor class expects the offset value in the returned dictionaries to be in the number of bytes in the encoding of the current buffer, but Buffer.parse was returning the offset in number of codepoints/runes.
I don't have any experience with vim plugins, so this might be totally wrong. But it seems to fix the issue in #302. EDIT: Also seems to fix #305.
Completor class expects the offset value in the returned dictionaries to be in the number of bytes in the encoding of the current buffer, but Buffer.parse was returning the offset in number of codepoints/runes.