DEAR PEOPLE FROM THE FUTURE: Here's what we've figured out so far...

Welcome! This is a Q&A website for computer programmers and users alike, focused on helping fellow programmers and users. Read more

What are you stuck on? Ask a question and hopefully somebody will be able to help you out!
+1 vote

I've written the following in my custom folder, and I've run :PackerSync followed by :Copilot setup, but I get an error: E492: Not an editor command: Copilot setup.

Do I need to clone github/copilot somewhere or does Packer do it automatically? How do I configure it on NvChad?


local plugin_conf = require "custom.plugins.configs"

M.plugins = {
   user = userPlugins,
   override = {
      ["hrsh7th/nvim-cmp"] = plugin_conf.cmp,


return {
   ["github/copilot.vim"] = {
      config = function()
         vim.cmd [[
            let g:copilot_no_tab_map = v:true
   ["hrsh7th/cmp-copilot"] = {
      after = "nvim-cmp",

Sorry but I've never used Copilot so I can't really suggest a fix. However there seems to be a document with the installation instructions here. Did you follow those?

1 Answer

+1 vote
Best answer

Disclaimer: I've never used Copilot and NvChad before, but I wanted to give this issue a try and this is what worked for me.

  1. downloaded latest binary release of neovim (currently v0.7.2). The package from Debian does not seem to work with NvChad, as I get this error when starting up:

    vim/_init_packages.lua: cannot load incompatible bytecode
    E970: Failed to initialize builtin lua modules

  2. installed NvChad following their instructions:

    git clone ~/.config/nvim --depth 1

  3. installed copilot following their instructions:

    git clone ~/.config/nvim/pack/github/start/copilot.vim

and this just worked. Start nvim (the one downloaded from step 1.) and type:

:Copilot setup
First copy your one-time code: XXXX-XXXX
Press ENTER to open GitHub in your browser
selected by
Contributions licensed under CC0