Replies: 1 comment 3 replies
-
You could refer to my config at https://github.com/jellydn/my-nvim-ide/blob/main/lua/plugins/copilot-chat.lua#L59-L81 mappings = {
-- Use tab for completion
complete = {
detail = "Use @<Tab> or /<Tab> for options.",
insert = "<Tab>",
},
-- Close the chat
close = {
normal = "q",
insert = "<C-c>",
},
-- Reset the chat buffer
reset = {
normal = "<C-x>",
insert = "<C-x>",
},
-- Submit the prompt to Copilot
submit_prompt = {
normal = "<CR>",
insert = "<C-CR>",
},
-- Accept the diff
accept_diff = {
normal = "<C-y>",
insert = "<C-y>",
},
-- Show help
show_help = {
normal = "g?",
},
}, It's pretty much documented on readme file :) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How can I define a custom action for a mapping?
I want to also close the current chat buffer (
<c-c>
), when user accepts the diff (<c-y>
).Thanks, awesome plugin.
Beta Was this translation helpful? Give feedback.
All reactions