Skip to content

cursor doesn't move after accepting inline complete from copilot #4656

Answered by kassick
xuhdev asked this question in Q&A
Discussion options

You must be logged in to vote

It doesn't indeed (that was by design, as it matched my personal preference of "review what has just been inserted").

You can add this behavior by adding a hook to lsp-inline-completion-accepted-hook:

(add-hook
 'lsp-inline-completion-accepted-hook 
 (lambda (inserted-text start end) (goto-char end)))

I may add a customize option to handle this

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@kassick
Comment options

Answer selected by xuhdev
@kiennq
Comment options

kiennq Dec 27, 2024
Collaborator

@kiennq
Comment options

kiennq Dec 27, 2024
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants