From 3532a4fe5453bf48aaab4331903c19c8b1201739 Mon Sep 17 00:00:00 2001 From: itsscb Date: Wed, 9 Apr 2025 20:43:35 +0200 Subject: [PATCH] chore: disable gh copilot keymap --- init.lua | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/init.lua b/init.lua index 182fcd4..cdd1075 100644 --- a/init.lua +++ b/init.lua @@ -588,16 +588,17 @@ require('lazy').setup({ -- or a suggestion from your LSP for this to activate. map('ca', vim.lsp.buf.code_action, '[C]ode [A]ction', { 'n', 'x' }) - map('cp', function() - local is_enabled = vim.g.copilot_enabled == 1 - if is_enabled then - vim.cmd 'Copilot disable' - vim.notify('Copilot disabled', vim.log.levels.INFO) - else - vim.cmd 'Copilot enable' - vim.notify('Copilot enabled', vim.log.levels.INFO) - end - end, 'GitHub Copilot: Toggle') + -- GitHub Copilot keymap + -- map('cp', function() + -- local is_enabled = vim.g.copilot_enabled == 1 + -- if is_enabled then + -- vim.cmd 'Copilot disable' + -- vim.notify('Copilot disabled', vim.log.levels.INFO) + -- else + -- vim.cmd 'Copilot enable' + -- vim.notify('Copilot enabled', vim.log.levels.INFO) + -- end + -- end, 'GitHub Copilot: Toggle') -- WARN: This is not Goto Definition, this is Goto Declaration. -- For example, in C this would take you to the header.