zbirenbaum / copilot-cmp

Lua plugin to turn github copilot into a cmp source
MIT License
1.13k stars 41 forks source link

attempt to index field 'copilot' (a boolean value) when I first time open telescope #80

Closed nshen closed 1 year ago

nshen commented 1 year ago

ERROR packer.nvim: Error running config for copilot-cmp: /Users/nn/.config/nvim/lua/insis/plugins/copilot.lua:9: attempt to index field 'copilot' (a boolean value)

here is my config

  require("copilot").setup({
    suggestion = { enabled = false },
    panel = { enabled = false },
  })
  require("copilot_cmp").setup()
  keymap("n", cmp.copilot.panel, "<CMD>Copilot panel<CR>")