remove github copilot

This commit is contained in:
2025-06-30 09:07:01 -05:00
parent 35c1889ead
commit 5badfd8361

View File

@@ -1,40 +0,0 @@
return {
{
"CopilotC-Nvim/CopilotChat.nvim",
dependencies = {
-- Use whichever Copilot plugin you prefer, but configure it as above
{ "zbirenbaum/copilot.lua" },
{ "nvim-lua/plenary.nvim" },
},
build = "make tiktoken",
opts = {},
keys = {
{ "<leader>cc", "<cmd>CopilotChatToggle<cr>", desc = "Open Copilot Chat" },
},
cmd = { "CopilotChat" },
},
{
"zbirenbaum/copilot.lua",
config = function()
require("copilot").setup({
suggestion = {
enabled = false,
auto_trigger = true,
keymap = {
accept = "<C-a>",
},
},
panel = { enabled = false },
})
vim.keymap.set("n", "<leader>cs", function()
-- flips the auto_trigger for the current buffer
require("copilot.suggestion").toggle_auto_trigger()
-- read the buffer-local flag that Copilot sets under the hood
local on = vim.b.copilot_suggestion_auto_trigger or false
print("Copilot suggestions " .. (on and "enabled" or "disabled"))
end, { desc = "Toggle Copilot inline suggestions" })
end,
-- Don't lazy-load, CopilotChat needs backend running
event = "VeryLazy",
},
}