Skip to content

fix(#2219): trigger on_changed also for text alteration (!= deletion) - #2228

Open
litoj wants to merge 1 commit into
hrsh7th:mainfrom
litoj:main
Open

fix(#2219): trigger on_changed also for text alteration (!= deletion)#2228
litoj wants to merge 1 commit into
hrsh7th:mainfrom
litoj:main

Conversation

@litoj

@litoj litoj commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

My original implementation discarded any change that altered the text in any other way than writing 1 char. This discarded pasted text as well as other plugins that may alter the text but are meant just to help with text input.

It can be argued that in most cases when a larger text change is made - whether by a plugin or by the user pasting in some text - the user likely doesn't actually want to see any completion. So this change may actually introduce back some minor annoyances in very rare cases, where even after the text alteration there still exist some completion items that could match it.

Ideally, this would be even more configurable, in essence just leaving the text change triggering to the user completely or at least have the condition be determined via a function in the config.

I can make that change here straight away (with this as the default), if you thing it is better in order to solve this issue once and for all.

Fixes happy663/dotfiles#301

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nvim-cmp更新でskkeletonの補完が表示されない問題を修正する

1 participant