Skip to content

Conversation

@millerjason
Copy link

Use vim.schedule instead of cmp.utils.feedkeys to prevent command text insertion into a text buffer.

The feedkeys mechanism was causing 'lua require"cmp.utils.feedkeys".run(#)' to be inserted into buffers instead of being executed as a command as intended.

This should close #1619 and #2033 and others related to the command showing up in the edit buffer.

@millerjason millerjason changed the title fix: feedkeys might insert cmp.utils.feedkeys... into acrtive text buffer fix: feedkeys might insert cmp.utils.feedkeys... into active text buffer Jul 13, 2025
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.

call v:lua.cmp.utils.feedkeys.call.run(2) is inserted if the plugin is lazy-loaded with other plugins by dein.vim

1 participant