update nvim cmp and copilot

This commit is contained in:
2023-05-04 09:15:14 -07:00
parent 7cff58dede
commit e0a811ea58
2 changed files with 27 additions and 41 deletions

View File

@@ -20,7 +20,7 @@ require('packer').startup(function(use)
vim.defer_fn(function()
require('copilot').setup({
panel = {
enabled = true,
enabled = false,
auto_refresh = false,
keymap = {
jump_prev = "[[",
@@ -39,8 +39,8 @@ require('packer').startup(function(use)
auto_trigger = true,
debounce = 75,
keymap = {
-- accept = "<Tab>",
accept = "<Right>",
accept = "<C-l>",
-- accept = "<Right>",
next = "<M-]>",
prev = "<M-[>",
dismiss = "<C-]>",
@@ -76,10 +76,12 @@ require('packer').startup(function(use)
use {
"zbirenbaum/copilot-cmp",
after = { "copilot.lua" },
-- after = { "copilot.lua" },
config = function ()
require("copilot_cmp").setup({
method = "getCompletionsCycling",
suggestion = { enabled = false },
panel = { enabled = false },
-- method = "getCompletionsCycling",
-- formatters = {
-- insert_text = require("copilot_cmp.format").remove_existing
-- }