copilot recomendations

This commit is contained in:
yaso 2026-07-06 14:41:56 +02:00
parent 7d2ce1c63f
commit 71ab6c4ceb
2 changed files with 12 additions and 6 deletions

View file

@ -3,6 +3,7 @@ return {
event = 'InsertEnter', event = 'InsertEnter',
opts = { opts = {
fast_wrap = {}, fast_wrap = {},
map_cr = false,
}, },
config = function(_, opts) config = function(_, opts)
-- Initialize autopairs with your choices -- Initialize autopairs with your choices

View file

@ -1,12 +1,17 @@
return { return {
"github/copilot.vim", "github/copilot.vim",
lazy = false, -- lazy = false,
cmd = "Copilot",
keys = {
{
"<C-l",
'copilot#Accept("\\<CR>")',
mode = "i",
expr = true,
replace_keycodes = false,
},
},
config = function() config = function()
vim.g.copilot_enabled = false vim.g.copilot_enabled = false
vim.g.copilot_no_tab_map = true
vim.keymap.set('i', '<C-l>', 'copilot#Accept("\\<CR>")', {
expr = true,
replace_keycodes = false
})
end, end,
} }