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

first letter is not inserted in python omnifunc #9

Open
p00f opened this issue Dec 16, 2022 · 1 comment
Open

first letter is not inserted in python omnifunc #9

p00f opened this issue Dec 16, 2022 · 1 comment

Comments

@p00f
Copy link

p00f commented Dec 16, 2022

When I use the builtin python omnifunc, the first letter of the selection is not inserted:

cmp.mp4
@liskin
Copy link

liskin commented Aug 21, 2024

This is almost certainly caused by hrsh7th/nvim-cmp#1177, because python omnifunc produces a textEdit that keeps the "a" unchanged and simply appends "rgv", but get_replace_range discards that range and invents its own that replaces the "a" as well. What seems to help is to configure mappings to always insert rather than replacing (so that get_replace_range is never invoked).

liskin added a commit to liskin/dotfiles that referenced this issue Aug 21, 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

No branches or pull requests

2 participants