CopilotC-Nvim / CopilotChat.nvim

Chat with GitHub Copilot in Neovim
https://copilotc-nvim.github.io/CopilotChat.nvim/
GNU General Public License v3.0
1.5k stars 69 forks source link

Turn off auto complete? #291

Closed aramrw closed 4 months ago

aramrw commented 4 months ago

When I first set this up it never inline auto completed for me, but I changed some of my other plugins (a while ago) and now it does for some reason.

I'd like to turn it back off again and only be able to use the chat, if someone could tell me how to do that I'd appreciate it 👍🏼

And by turn it off, I mean I don't want to be able to see them at all, not just remove the shortcut

deathbeam commented 4 months ago

There is no autocomplete in the plugin at all. Maybe you mean copilot.vim or copilot.lua autosuggestions? But those are different plugins so refer to their documentation

tecfu commented 3 months ago

@aramrw I had this issue as well. For me the problem is that the default completion setting breaks both coc.nvim and nvim-cmp. Try:

require('CopilotChat').setup({
    debug = true,
    mappings = {
      complete = {
        detail = 'Use @<Tab> or /<Tab> for options.',
    -- Default <Tab> setting conflicts with cmp and coc-nvim
        insert = '<S-Tab>'
      }
    }
  })

Then tab completion will work as expected inside the CopilotChat window.

antonmry commented 2 months ago

In my case, it was a collision with github/copilot.vim, I fixed it removing the mapping:

  {
    "CopilotC-Nvim/CopilotChat.nvim",
    branch = "canary",
    dependencies = {
      {"github/copilot.vim"},
      { "nvim-lua/plenary.nvim" }, 
    },
    opts = {
      debug = true,
      show_help = false,
      mappings = {
    complete = {
      insert = '',
    },
      },
    },
  },