From 46e8cd31cf8b27b99375bd0bea2e1e5b72c308e2 Mon Sep 17 00:00:00 2001 From: RafalChelstowski Date: Sun, 16 Jul 2023 01:10:41 +0200 Subject: [PATCH] copilot --- init.lua | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 249ec779..4ee9e24e 100644 --- a/init.lua +++ b/init.lua @@ -111,7 +111,24 @@ require('lazy').setup({ }, -- copilot - -- { 'github/copilot.vim', opts = {} }, + { + 'zbirenbaum/copilot.lua', + opts = { + config = function () + require("copilot").setup({ + suggestion = { enabled = false }, + panel = { enabled = false }, + }) + end, + } + }, + + { + "zbirenbaum/copilot-cmp", + config = function () + require("copilot_cmp").setup() + end + }, -- Useful plugin to show you pending keybinds. { 'folke/which-key.nvim', opts = {} }, @@ -530,6 +547,7 @@ cmp.setup { end, { 'i', 's' }), }, sources = { + { name = "copilot", group_index = 2 }, { name = 'nvim_lsp' }, { name = 'luasnip' }, },