zbirenbaum / copilot.lua

Fully featured & enhanced replacement for copilot.vim complete with API for interacting with Github Copilot
MIT License
2.6k stars 75 forks source link

can't seem to accept any suggestions #178

Closed sf8193 closed 1 year ago

sf8193 commented 1 year ago

Hello,

I'm sure this is misconfiguration on my end, however with my setup

return {
  "zbirenbaum/copilot.lua",
  cmd = "Copilot",
  event = "InsertEnter",
  config = function()
    require("copilot").setup({
        filetypes = {
          javascript = true, -- allow specific filetype
          typescript = true, -- allow specific filetype
        },
        suggestion = {
          auto_trigger=true
        },
        keymap = {
              accept = "<tab>",
              -- accept_word = false,
              accept_line = true,
              -- next = "<M-]>",
              -- prev = "<M-[>",
              -- dismiss = "<C-]>",
        },
    })
  end,
}
Screen Shot 2023-06-08 at 10 15 32 AM

no matter what mapping i use for accept, i can't get the above text to be "accepted" in insert mode. What am I missing?

sf8193 commented 1 year ago

i'm a buffoon, keymap should be in the suggestions table