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(ghost-text): flickering using decoration provider and redraw func… #255

Merged
merged 2 commits into from
Nov 4, 2024

Conversation

giuxtaposition
Copy link
Contributor

@giuxtaposition giuxtaposition commented Nov 4, 2024

Should fix #249.
I'm basically using vim.api.nvim_set_decoration_provider and the redraw function to update the ghost_text

@Saghen
Copy link
Owner

Saghen commented Nov 4, 2024

Thanks for the PR! I've switched it from a decoration provider to autocmds. I wanted to avoid redrawing the window since that can sometimes be expensive and setting non-ephemeral extmarks has some weird behaviors in a decoration provider.

@Saghen Saghen merged commit a94bbaf into Saghen:main Nov 4, 2024
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.

Ghost text flickers when typing.
2 participants