Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use vim.cmd instead of feedkeys #52

Merged
merged 1 commit into from
Feb 24, 2024
Merged

Conversation

armed
Copy link
Collaborator

@armed armed commented Feb 24, 2024

Current implementation uses vim.api.nvim_feedkeys which is slower whan vim.cmd("startinsert") due to more general nature (async?) of an API.

Sometimes when user (me 😃) presses ,w/,W (wrap + insert mode) and immediately starts typing the text input gets broken because insert mode is not yet activated, startinsert is way more faster and solves this issue.

Copy link
Owner

@julienvincent julienvincent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌺

@armed armed merged commit 9a895d1 into master Feb 24, 2024
2 checks passed
@armed armed deleted the fix/proper-insert-mode-switch branch February 24, 2024 11:06
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.

2 participants