hrsh7th / nvim-cmp

A completion plugin for neovim coded in Lua.
MIT License
7.47k stars 370 forks source link

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

Open AntonC9018 opened 4 months ago

AntonC9018 commented 4 months ago

FAQ

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

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.

Shougo commented 4 months ago

Please see this.

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