crispgm / cmp-beancount

nvim-cmp source for beancount accounts
MIT License
35 stars 4 forks source link

How to replace matched abbreviations? #2

Closed wzyboy closed 2 years ago

wzyboy commented 2 years ago

Thanks for the plugin!

I'm migrating from deoplete to nvim-cmp and have a question regarding the abbreviation match capability of this plugin.

In my previous setup of deoplete + vim-beancount + supertab, there is abbreviation-based auto-completion. For example:

I:E:C<Tab>

turns into

Income:Employment:Company

However, with nvim-cmp + cmp-beancount, the same key sequence turns the text into:

I:E:Income:Employment:Company

Note that only C got replaced, but not the entire I:E:C string.

I tried to debug if this is the issue with my nvim-cmp mapping. But even with the exact same mapping as yours, I cannot get the abbrevation replacement working.

Could you shed some light on this? Thanks.

crispgm commented 2 years ago

I noticed this issue as well. I have no idea but I think I am gonna figure this out this weekends though.

crispgm commented 2 years ago

I noticed this issue as well. I have no idea but I think I am gonna figure this out this weekends though.

It's fixed lol, it works good for me. You may update later :)

wzyboy commented 2 years ago

Thanks! It works for me as well!