dot repeat support for last line or word suggestion
Discussed in https://github.com/zbirenbaum/copilot.lua/discussions/499
Originally posted by OndrejGlembek June 11, 2025
When doing "dot repeat" after the copilot completion, neovim behaves non-deterministically, which can be seen in the . register. Is there an option to force copilot.lua to re-instert whatever copilot suggested?
I found a similar topic on the copilot.vim plugin: https://github.com/orgs/community/discussions/113446, but their solution is not applicable here.
Thank you
Well this sucks, NeoVim does not allow writing to the . register :(
Implementing this will require a surprising amount of code, though I am giving it a try.
Closing this as it ended up being a rabbit hole and is not worth it IMO. Though if ever someone comes across this feel free to give it a try I will gladly accept a PR for it.
Any reason you explicitly want this issue closed? The issue is still there and not fixed. Best for new users to find an existing open issue, and not raise another one.
For new users a not in the README.md would be much better.
I have no plans to work on this and the chances of anyone else working on this are so slim that it will end up being a forever ticket that dilutes the other issues that have a chance of getting done :)
PS: Closed issues are also searchable so they should still find it.