diff --git a/lua/dkelly/plugins/gh-copilot.lua b/lua/dkelly/plugins/gh-copilot.lua deleted file mode 100644 index 721b2b1..0000000 --- a/lua/dkelly/plugins/gh-copilot.lua +++ /dev/null @@ -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 = { - { "cc", "CopilotChatToggle", desc = "Open Copilot Chat" }, - }, - cmd = { "CopilotChat" }, - }, - { - "zbirenbaum/copilot.lua", - config = function() - require("copilot").setup({ - suggestion = { - enabled = false, - auto_trigger = true, - keymap = { - accept = "", - }, - }, - panel = { enabled = false }, - }) - vim.keymap.set("n", "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", - }, -}