Skip to content

Commit

Permalink
feat: migrate copilot chat options
Browse files Browse the repository at this point in the history
  • Loading branch information
louib committed May 3, 2024
1 parent aa84878 commit baa1f5e
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions flakes/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1018,14 +1018,31 @@ local function configure_copilot()
},

mappings = {
close = '<C-c>',
reset = '<Del>',
complete = '<Tab>',
submit_prompt = '<CR>',
accept_diff = 'a',
show_diff = 'gd',
show_system_prompt = 'gp',
show_user_selection = 'gs',
close = {
insert = '<C-c>',
},
reset = {
normal = '<Del>',
insert = '<Del>',
},
complete = {
insert = '<Tab>',
},
submit_prompt = {
normal = '<CR>',
},
accept_diff = {
normal = 'a',
},
show_diff = {
normal = 'gd',
},
show_system_prompt = {
normal = 'gp',
},
show_user_selection = {
normal = 'gs',
},
},
})
end
Expand Down

0 comments on commit baa1f5e

Please sign in to comment.