return{"\122\098\105\114\101\110\098\097\117\109\047\099\111\112\105\108\111\116\046\108\117\097",cmd="\067\111\112\105\108\111\116",keys={{"\060\067-\099\062";function()local W=require("\099\111\112\105\108\111\116\046\115\117\103\103\101\115\116\105\111\110")local d=package.loaded["\098\108\105\110\107\046\099\109\112"]local U=require("\095\046\117\116\105\108\115")W.toggle_auto_trigger()W.dismiss()if d then d.hide()end U.refresh_statusline()end;mode={"\110","\105";"\118"},desc="\084\111\103\103\108\101 \067\111\112\105\108\111\116"}};opts={panel={enabled=false},suggestion={enabled=true,auto_trigger=false,keymap={accept="\060\067-\097\062";accept_word="\060\077-\119\062";next="\060\077-\093\062";prev="\060\077-\091\062",dismiss="\060\067-\113\062"}}}}
-- copilot
-- https://github.com/zbirenbaum/copilot.lua

return {
  "zbirenbaum/copilot.lua",
  cmd = "Copilot",
  keys = {
    {
      "<C-c>",
      function()
        local copilot = require("copilot.suggestion")
        local blink = package.loaded["blink.cmp"]
        local utils = require("_.utils")

        copilot.toggle_auto_trigger()
        copilot.dismiss()

        if blink then
          blink.hide()
        end

        utils.refresh_statusline()
      end,
      mode = { "n", "i", "v" },
      desc = "Toggle Copilot",
    },
  },

  opts = {
    panel = {
      enabled = false,
    },
    suggestion = {
      enabled = true,
      auto_trigger = false,
      keymap = {
        accept = "<C-a>",
        accept_word = "<M-w>",
        next = "<M-]>",
        prev = "<M-[>",
        dismiss = "<C-q>",
      },
    },
  },
}
