-
-
Notifications
You must be signed in to change notification settings - Fork 250
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
feat(completion): added more mappings for copilot-lua-cmp #150
Conversation
It is very useful to accept Co-pilot suggestions one word at a time or even a whole line. Copilot offers these features but they have not been exposed. VS Code, by default uses Ctrl+Right to accept a word. I've added similar vim-like controls: * Ctrl+Right/L for accepting a word * Ctrl+Down/J for accepting a line * Ctrl+C to dismiss the suggestion
as many people using copilot i waiting for some comments, i don't use this version i use the normal version because i like the cmp and tab |
I mean this is more of a preference thing no? Wouldn't it just be better to put this in the user defined opts instead? |
I disagree. The ability to use copilot's complete next word and complete line is vital to partially accepting its suggestions and makes the tool more productive. The pack adds This, of course, is a judgement call. |
everyone can add their own preferences. the main reason for this config is that the tab thing is working. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make sure formatting and linting is passing
I use the copilot accept_line option a lot, and should probably use accept_word more too. But I just set them in my own keymap. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the formatting/linting. LGTM
It is very useful to accept Co-pilot suggestions one word at a time or even a whole line. Copilot offers these features but they have not been exposed. VS Code, by default uses Ctrl+Right to accept a word. I've added similar vim-like controls: