Make copilot work with cmp

This commit is contained in:
Jiří Štefka 2022-10-29 23:55:17 +02:00
parent eac04f8fca
commit e6d978fc38
2 changed files with 30 additions and 2 deletions

View file

@ -1,3 +1,6 @@
local cmp = require('cmp')
-- Never gonna give you up
-- Never gonna
-- AstroNvim Configuration Table
-- All configuration changes should go inside of the table below
@ -271,7 +274,7 @@ local config = {
-- ["<esc>"] = false,
},
i = {
["<C-e>"] = { "copilot#Accept('<CR>')", silent = true, expr = true },
-- ["<Tab>"] = { "copilot#Accept('<CR>')", silent = true, expr = true },
}
},
@ -292,7 +295,7 @@ local config = {
-- end,
-- },
--
{
{
"folke/todo-comments.nvim",
event = "BufRead",
config = function()