From f2cfbd61105224c2b3e21ea35fe49c36c2090e03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Fri, 22 Dec 2023 12:44:48 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(nvim):=20personal?= =?UTF-8?q?=20copilot=20extra=20now=20imports=20the=20lazyvim=20one?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lua/plugins/extras/coding/ai/copilot.lua | 37 ++++++++++--------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/.config/nvim/lua/plugins/extras/coding/ai/copilot.lua b/.config/nvim/lua/plugins/extras/coding/ai/copilot.lua index 3bba6313..02cccfac 100644 --- a/.config/nvim/lua/plugins/extras/coding/ai/copilot.lua +++ b/.config/nvim/lua/plugins/extras/coding/ai/copilot.lua @@ -1,23 +1,26 @@ return { - "zbirenbaum/copilot.lua", - event = "InsertEnter", - opts = { - suggestion = { - enabled = true, - auto_trigger = true, - keymap = { - accept = "", - accept_line = "", - accept_word = "", - next = "", - prev = "", - dismiss = "", + { + import = "lazyvim.plugins.extras.coding.copilot", + }, + { + "zbirenbaum/copilot.lua", + event = "InsertEnter", + opts = { + suggestion = { + enabled = true, + auto_trigger = true, + keymap = { + accept = "", + accept_line = "", + accept_word = "", + next = "", + prev = "", + dismiss = "", + }, }, }, - panel = { enabled = false }, - filetypes = { - markdown = true, - help = true, + keys = { + { "cI", "Copilot toggle", desc = "Toggle IA" }, }, }, }