cmp-buffer
cmp-buffer copied to clipboard
Feature request: don't suggest what is already under the cursor
E.g. if the use has typed what, remove what from the completion.
I'm not sure why this is happening, since it looks like https://github.com/hrsh7th/cmp-buffer/blob/3022dbc9166796b644a841a02de8dd1cc1d311fa/lua/cmp_buffer/source.lua#L68C34-L68C39 should filter it out
I run into a flavor of this issue a lot.
Repro steps:
- Type "hello world"
- Place cursor in front of the 'w' in insert mode and hit backspace
At this point, the cursor is between the 'o' and 'w' and nvim-cmp suggests "helloworld"