nvim-cmp icon indicating copy to clipboard operation
nvim-cmp copied to clipboard

Text completion does not include words with UTF-8 characters that take up more that a single byte

Open AntonC9018 opened this issue 1 year ago • 1 comments

FAQ

  • [X] I have checked the FAQ and it didn't resolve my problem.

Announcement

Minimal reproducible full config

A default config should repro this. I haven't changed anything that has to do with this.

Description

Here I have a piece of text attăăăă with a few Romanian letters that take up 2 bytes each. As you can see, the completion does not include this word as a completion option.

image

If I do normal a's instead, it does offer that as an option.

image

Steps to reproduce

  • Type a word that has e.g. Romanian letters in it (but I suspect that this is the case for any multibyte characters);
  • Type e.g. the first letter of that word;
  • Request buffer completion.

Expected behavior

The word is shown as an option.

Actual behavior

It's not.

Additional context

Vim's <C-p> word completion does work with this.

AntonC9018 avatar Feb 11 '24 19:02 AntonC9018

Please see this.

https://github.com/hrsh7th/nvim-cmp/issues/978

Shougo avatar Feb 12 '24 01:02 Shougo