-
Notifications
You must be signed in to change notification settings - Fork 27
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
nvim-cmp inserting control-f character #168
Comments
It's not "supported" only in the sense that no direct integration exists, but definitely it's supported in that if you're using it we shouldn't break things :P I'm not sure what's happening here, I haven't myself managed to switch to cmp yet, so we'll have to investigate. Of course if you figure out what's happening please feel free to let us know (or of course send a PR :) Just to be sure, you don't happen to have both compe an cmp installed perchance right? |
Nope, I uninstalled compe when I switched. I honestly dont even know how it is cmp because I don't invoke completion at all and it still persists, but when I did uninstall it, it did fix my issue. |
OK now that I've switched to cmp (which was pretty painless) I can certainly confirm this issue at least, even if I haven't figured out what causes it yet. I suspect something in cmp is interacting badly with us, maybe having to do with some code in it that's trying to detect endwise-like things, but yeah shouldn't be too hard to find with a bit of digging I suspect. |
This is an upstream bug AFAICT -- filed it on nvim-cmp (it's easily reproducible without |
Ok and it's been fixed already :) |
Hmm, I can still reproduce the issue. |
Sorry, I didn't try it out before making assumptions but looks like indeed you're right, that didn't do it. Will reopen upstream (it's still the same issue it appears with |
OK, the second fix seems to work here -- does it for you as well? |
Yeah the fix works now, thanks! |
After hrsh7th/nvim-cmp#443, the same issue is back. Why do we append https://github.com/Julian/lean.nvim/blob/main/indent/lean3.vim#L6 |
Some of what's there is still applicable (like inserting a But really again this is a nvim-cmp issue unrelated to us (which has to do with various possible values for |
Hey, I understand that nvim-cmp is not supported as of now, but this bug is a rather peculiar one. I have just started using lean and whenever I write a begin end block, the end always gets a Control-f character appended to it. I disabled nvim-cmp entirely and I cannot reproduce this issue. I use manual completion and this occurs without having to even invoke the menu. This occurs on
.lean3
files, I haven't been able to figure how to specify that.lean
files are lean3 automatically.Example file: (you could remove the end and try it yourself)
My cmp setup: https://gist.github.com/ram02z/3a5b8f26dec39d46345b22c7445cd386
My lean.nvim setup:
Neovim version:
NVIM v0.6.0-dev-gb3e0d6708
The text was updated successfully, but these errors were encountered: