2023-03-04 13:22:48 +01:00
|
|
|
require("copilot").setup({
|
|
|
|
suggestion = { enabled = false },
|
|
|
|
panel = { enabled = false },
|
|
|
|
})
|
|
|
|
vim.api.nvim_create_autocmd("VimEnter", {
|
|
|
|
desc = "Disable Copilot by default on startup",
|
|
|
|
command = "Copilot disable",
|
|
|
|
})
|
2023-05-28 18:23:25 +02:00
|
|
|
require("which-key").register({
|
|
|
|
c = { "<cmd>Copilot toggle<cr>", "Toggle Copilot" },
|
|
|
|
}, { prefix = "<leader>t" })
|