copilot recomendations
This commit is contained in:
parent
7d2ce1c63f
commit
71ab6c4ceb
2 changed files with 12 additions and 6 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue