From c70df90a9814a2bd48db993cafd00638556751a4 Mon Sep 17 00:00:00 2001 From: ErdajtSopjani Date: Wed, 1 May 2024 22:59:16 +0200 Subject: [PATCH] Added docs for disabling accept keymap due to current issues - Currently there is an issue where doesn't disable the accept mapping - Disabling the mapping can be achieved by completely deleting the keymap (in the copilot config/setup) via - Added this to official docs to avoid confusion of users and provide a solution until an official fix is available --- doc/copilot.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/copilot.txt b/doc/copilot.txt index 90c3e66..439f803 100644 --- a/doc/copilot.txt +++ b/doc/copilot.txt @@ -130,6 +130,10 @@ Lua version: }) vim.g.copilot_no_tab_map = true < +To disable the accept keymap add this line (on the copilot setup/config): +> + vim.keymap.del('i', '') +< The argument to copilot#Accept() is the fallback for when no suggestion is displayed. In this example, a regular carriage return is used. If no fallback is desired, use an argument of "" (an empty string).